pub struct ContentId(/* private fields */);Expand description
Durable identity of one immutable content object.
The body is 128 fully random bits, with no time component: content
object keys shard on the id’s leading characters, and a clock-derived
prefix would put every upload in one window into one shard. The id
names which object, never what it contains — integrity evidence
rides crate::ContentRef beside it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContentId
impl<'de> Deserialize<'de> for ContentId
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
impl Eq for ContentId
Source§impl Ord for ContentId
impl Ord for ContentId
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 ContentId
impl PartialOrd for ContentId
impl StructuralPartialEq for ContentId
Auto Trait Implementations§
impl Freeze for ContentId
impl RefUnwindSafe for ContentId
impl Send for ContentId
impl Sync for ContentId
impl Unpin for ContentId
impl UnsafeUnpin for ContentId
impl UnwindSafe for ContentId
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