pub struct SpaceMember {
pub record: EntityId,
pub user: Option<EntityId>,
pub name: Option<String>,
pub role: Role,
pub this_user: bool,
pub replicas: Vec<MemberReplica>,
pub person: PersonLink,
}Expand description
A member of a shared space, as its counting governing changes say: a user, with a role, and the replicas listed for them there.
Fields§
§record: EntityIdThe member’s record in the space.
user: Option<EntityId>The ID of the user whom the member is, as the record states it.
name: Option<String>The member’s name in the space.
role: RoleThe member’s role now: MemberRole::None for one who left or was removed.
this_user: boolWhether the member is the one this replica is listed for.
replicas: Vec<MemberReplica>The member’s replicas there, by record.
person: PersonLinkThe member’s link to a person in the space.
Trait Implementations§
Source§impl Clone for SpaceMember
impl Clone for SpaceMember
Source§impl Debug for SpaceMember
impl Debug for SpaceMember
impl Eq for SpaceMember
Source§impl PartialEq for SpaceMember
impl PartialEq for SpaceMember
impl StructuralPartialEq for SpaceMember
Auto Trait Implementations§
impl Forget for SpaceMember
impl Freeze for SpaceMember
impl Move for SpaceMember
impl RefUnwindSafe for SpaceMember
impl Send for SpaceMember
impl Sync for SpaceMember
impl Unpin for SpaceMember
impl UnsafeUnpin for SpaceMember
impl UnwindSafe for SpaceMember
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.