pub struct SpaceProjection {
pub schema_version: u16,
pub space_id: SpaceId,
pub config: SpaceConfig,
pub parent_chain_depth: Option<ParentChainDepth>,
pub membership: Option<SpaceMembership>,
pub cursor: Option<ProjectionCursor>,
}Expand description
Space read-model row — SpaceConfig + parent-chain cache + membership.
Fields§
§schema_version: u16Wire schema version.
space_id: SpaceIdSpace identity.
config: SpaceConfigAuthoritative SpaceConfig Component.
parent_chain_depth: Option<ParentChainDepth>Cached parent-chain depth (E-space-4 O(1)).
membership: Option<SpaceMembership>Membership list for PrivateInvite Spaces.
cursor: Option<ProjectionCursor>Event cursor.
Trait Implementations§
Source§impl Clone for SpaceProjection
impl Clone for SpaceProjection
Source§fn clone(&self) -> SpaceProjection
fn clone(&self) -> SpaceProjection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpaceProjection
impl Debug for SpaceProjection
Source§impl<'de> Deserialize<'de> for SpaceProjection
impl<'de> Deserialize<'de> for SpaceProjection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpaceProjection
impl PartialEq for SpaceProjection
Source§fn eq(&self, other: &SpaceProjection) -> bool
fn eq(&self, other: &SpaceProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SpaceProjection
impl Serialize for SpaceProjection
impl Eq for SpaceProjection
impl StructuralPartialEq for SpaceProjection
Auto Trait Implementations§
impl Freeze for SpaceProjection
impl RefUnwindSafe for SpaceProjection
impl Send for SpaceProjection
impl Sync for SpaceProjection
impl Unpin for SpaceProjection
impl UnsafeUnpin for SpaceProjection
impl UnwindSafe for SpaceProjection
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,
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.