pub struct PersonLink {
pub holds: Option<EntityId>,
pub by_admin: Option<EntityId>,
pub by_member: Option<EntityId>,
pub deleted: bool,
}Expand description
A member’s link to a person in a shared space: it holds when an admin’s statement and the member’s own name the same person; an admin’s own statement counts for both while they are an admin (users and people).
Fields§
§holds: Option<EntityId>The person the member is linked to, if the two agree, and the person is not deleted.
by_admin: Option<EntityId>The person that an admin’s latest statement names, if one states it.
by_member: Option<EntityId>The person that the member’s own latest statement names, if they state it.
deleted: boolWhether the two agree on a person who is deleted, which holds no link.
Trait Implementations§
Source§impl Clone for PersonLink
impl Clone for PersonLink
impl Copy for PersonLink
Source§impl Debug for PersonLink
impl Debug for PersonLink
Source§impl Default for PersonLink
impl Default for PersonLink
impl Eq for PersonLink
Source§impl PartialEq for PersonLink
impl PartialEq for PersonLink
impl StructuralPartialEq for PersonLink
Auto Trait Implementations§
impl Forget for PersonLink
impl Freeze for PersonLink
impl Move for PersonLink
impl RefUnwindSafe for PersonLink
impl Send for PersonLink
impl Sync for PersonLink
impl Unpin for PersonLink
impl UnsafeUnpin for PersonLink
impl UnwindSafe for PersonLink
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.