pub struct ObjectId(/* private fields */);Expand description
A 32-byte object identifier.
Implementations§
Source§impl ObjectId
impl ObjectId
Sourcepub const fn from_bytes(bytes: [u8; 32]) -> Self
pub const fn from_bytes(bytes: [u8; 32]) -> Self
Construct an object ID from raw bytes.
Sourcepub fn from_canonical_payload(
object_type: ObjectType,
schema_version: u32,
canonical_payload: &[u8],
) -> Self
pub fn from_canonical_payload( object_type: ObjectType, schema_version: u32, canonical_payload: &[u8], ) -> Self
Compute an object ID from object type, schema version, and unsigned canonical payload.
Trait Implementations§
impl Copy for ObjectId
impl Eq for ObjectId
Source§impl Ord for ObjectId
impl Ord for ObjectId
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
Source§impl PartialOrd for ObjectId
impl PartialOrd for ObjectId
impl StructuralPartialEq for ObjectId
Auto Trait Implementations§
impl Freeze for ObjectId
impl RefUnwindSafe for ObjectId
impl Send for ObjectId
impl Sync for ObjectId
impl Unpin for ObjectId
impl UnsafeUnpin for ObjectId
impl UnwindSafe for ObjectId
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