pub struct ProjectionGroupKey { /* private fields */ }Expand description
A complete canonical projection group-state key.
Implementations§
Source§impl ProjectionGroupKey
impl ProjectionGroupKey
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self, ProjectionKeyError>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self, ProjectionKeyError>
Parses a syntactically canonical complete group key.
Exact component types and count still require the matching checked projection group schema.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Returns the canonical key bytes.
Sourcepub fn into_parts(
self,
) -> (ProjectionIdentity, ProjectionGeneration, Vec<CanonicalValue>)
pub fn into_parts( self, ) -> (ProjectionIdentity, ProjectionGeneration, Vec<CanonicalValue>)
Consumes the key without cloning its decoded component allocation. The canonical byte buffer is released; callers retain the exact identity and generation explicitly rather than extracting values from a foreign key.
Sourcepub const fn identity(&self) -> &ProjectionIdentity
pub const fn identity(&self) -> &ProjectionIdentity
Returns the projection identity encoded by the key.
Sourcepub const fn generation(&self) -> ProjectionGeneration
pub const fn generation(&self) -> ProjectionGeneration
Returns the generation encoded by the key.
Sourcepub fn components(&self) -> &[CanonicalValue]
pub fn components(&self) -> &[CanonicalValue]
Returns the syntactically validated canonical scalar components.
Trait Implementations§
Source§impl Clone for ProjectionGroupKey
impl Clone for ProjectionGroupKey
Source§impl Debug for ProjectionGroupKey
impl Debug for ProjectionGroupKey
impl Eq for ProjectionGroupKey
Source§impl Hash for ProjectionGroupKey
impl Hash for ProjectionGroupKey
Source§impl Ord for ProjectionGroupKey
impl Ord for ProjectionGroupKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProjectionGroupKey
impl PartialEq for ProjectionGroupKey
Source§impl PartialOrd for ProjectionGroupKey
impl PartialOrd for ProjectionGroupKey
Auto Trait Implementations§
impl Freeze for ProjectionGroupKey
impl RefUnwindSafe for ProjectionGroupKey
impl Send for ProjectionGroupKey
impl Sync for ProjectionGroupKey
impl Unpin for ProjectionGroupKey
impl UnsafeUnpin for ProjectionGroupKey
impl UnwindSafe for ProjectionGroupKey
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