pub struct RelationAnnotation {
pub owner: UserRef,
pub relation: RelationRef,
pub note: Option<String>,
pub tags: BTreeSet<String>,
pub created_at: u64,
pub updated_at: u64,
}Expand description
A personal note and free-form labels attached to one relationship.
Relations are not entities: the opinion belongs to the edge itself, not to either endpoint. Keeping it in the user layer also preserves the invariant that the shared catalog contains facts while each person’s notes remain private.
Fields§
§owner: UserRefWhose opinion it is.
relation: RelationRefStable relationship being described.
note: Option<String>Free text about this exact relationship.
Personal labels such as dubious, favourite collaboration…
created_at: u64When the annotation was first written.
updated_at: u64When it was last changed.
Implementations§
Trait Implementations§
Source§impl Clone for RelationAnnotation
impl Clone for RelationAnnotation
Source§fn clone(&self) -> RelationAnnotation
fn clone(&self) -> RelationAnnotation
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 RelationAnnotation
impl Debug for RelationAnnotation
Source§impl PartialEq for RelationAnnotation
impl PartialEq for RelationAnnotation
impl Eq for RelationAnnotation
impl StructuralPartialEq for RelationAnnotation
Auto Trait Implementations§
impl Freeze for RelationAnnotation
impl RefUnwindSafe for RelationAnnotation
impl Send for RelationAnnotation
impl Sync for RelationAnnotation
impl Unpin for RelationAnnotation
impl UnwindSafe for RelationAnnotation
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