pub struct ConflictKey(/* private fields */);Expand description
An opaque canonical logical conflict key.
Implementations§
Source§impl ConflictKey
impl ConflictKey
Sourcepub fn new(bytes: Vec<u8>) -> Result<Self, KeyBytesError>
pub fn new(bytes: Vec<u8>) -> Result<Self, KeyBytesError>
Validates a key’s purpose/version envelope and hard size bounds.
Component-level validation requires the exact compiler-produced schema.
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self, KeyBytesError>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self, KeyBytesError>
Validates a key’s purpose/version envelope and hard size bounds.
Sourcepub fn aggregate_type_id(&self) -> AggregateTypeId
pub fn aggregate_type_id(&self) -> AggregateTypeId
Returns the stable type identity encoded in the key envelope.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Returns the canonical key bytes.
Trait Implementations§
Source§impl Clone for ConflictKey
impl Clone for ConflictKey
Source§impl Debug for ConflictKey
impl Debug for ConflictKey
impl Eq for ConflictKey
Source§impl Hash for ConflictKey
impl Hash for ConflictKey
Source§impl Ord for ConflictKey
impl Ord for ConflictKey
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 ConflictKey
impl PartialEq for ConflictKey
Source§impl PartialOrd for ConflictKey
impl PartialOrd for ConflictKey
impl StructuralPartialEq for ConflictKey
Auto Trait Implementations§
impl Freeze for ConflictKey
impl RefUnwindSafe for ConflictKey
impl Send for ConflictKey
impl Sync for ConflictKey
impl Unpin for ConflictKey
impl UnsafeUnpin for ConflictKey
impl UnwindSafe for ConflictKey
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