pub enum RelationPurpose {
Approved {
path: String,
purpose: String,
source: PurposeSource,
status: PurposeStatus,
},
Unavailable {
path: Option<String>,
},
NotApplicable,
}Expand description
Purpose state projected from the authoritative indexed owner at query time.
Variants§
Approved
Accepted agent-authored purpose owned by this exact local path.
Fields
§
source: PurposeSourcePersisted authorship source.
§
status: PurposeStatusPersisted approval state.
A local owner exists, but no authoritative accepted purpose is available.
NotApplicable
External or unresolved identity has no local purpose owner.
Trait Implementations§
Source§impl Clone for RelationPurpose
impl Clone for RelationPurpose
Source§fn clone(&self) -> RelationPurpose
fn clone(&self) -> RelationPurpose
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelationPurpose
impl Debug for RelationPurpose
Source§impl PartialEq for RelationPurpose
impl PartialEq for RelationPurpose
Source§impl Serialize for RelationPurpose
impl Serialize for RelationPurpose
impl Eq for RelationPurpose
impl StructuralPartialEq for RelationPurpose
Auto Trait Implementations§
impl Freeze for RelationPurpose
impl RefUnwindSafe for RelationPurpose
impl Send for RelationPurpose
impl Sync for RelationPurpose
impl Unpin for RelationPurpose
impl UnwindSafe for RelationPurpose
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more