pub enum StoredIdentity {
Stream {
schema: SchemaKey,
scope: Option<Identifier>,
item: Identifier,
stream: Identifier,
first: StorageCursor,
},
Object {
schema: SchemaKey,
key: ObjectKey,
first: StorageCursor,
},
}Variants§
Stream
Object
Implementations§
Source§impl StoredIdentity
impl StoredIdentity
pub fn first(&self) -> &StorageCursor
pub fn schema(&self) -> &SchemaKey
pub fn kind(&self) -> IdentityKind
Trait Implementations§
Source§impl Clone for StoredIdentity
impl Clone for StoredIdentity
Source§fn clone(&self) -> StoredIdentity
fn clone(&self) -> StoredIdentity
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 StoredIdentity
impl Debug for StoredIdentity
Source§impl<'de> Deserialize<'de> for StoredIdentity
impl<'de> Deserialize<'de> for StoredIdentity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StoredIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StoredIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Entry for StoredIdentity
impl Entry for StoredIdentity
type Selection = IdentitySelection
fn position(&self) -> &StorageCursor
fn matches(&self, selection: &IdentitySelection) -> bool
fn pending(_: Queued<'_>) -> &[Self]
fn scan<'a>( backend: &'a dyn StorageBackend, snapshot: &'a BackendSnapshot, selection: &'a IdentitySelection, page: ScanPage, memory: RetainedMemory, ) -> StorageFuture<'a, Vec<Self>>
fn start(_selection: &Self::Selection) -> u64
impl Eq for StoredIdentity
Source§impl MemorySize for StoredIdentity
impl MemorySize for StoredIdentity
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Source§impl PartialEq for StoredIdentity
impl PartialEq for StoredIdentity
Source§impl Serialize for StoredIdentity
impl Serialize for StoredIdentity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StoredIdentity
Auto Trait Implementations§
impl Freeze for StoredIdentity
impl RefUnwindSafe for StoredIdentity
impl Send for StoredIdentity
impl Sync for StoredIdentity
impl Unpin for StoredIdentity
impl UnsafeUnpin for StoredIdentity
impl UnwindSafe for StoredIdentity
Blanket Implementations§
impl<T> Allocation for T
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