pub enum ContentRefKind {
BlobV1,
Unsupported(String),
}Expand description
Kind of content reference.
Serializes as a plain string ("blob_v1"). Kinds unknown to this build
decode as ContentRefKind::Unsupported carrying the original string,
and re-serialize to that same string — so a reader that merely relays or
rewrites rows it does not fully understand can never destroy a newer
kind. Writers must not create references with an unsupported kind;
commit validation rejects them (format spec, “Validation and logical commits”).
Variants§
BlobV1
One immutable content object, addressed by its random content id.
Unsupported(String)
A content kind unknown to this build, preserved verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for ContentRefKind
impl Clone for ContentRefKind
Source§fn clone(&self) -> ContentRefKind
fn clone(&self) -> ContentRefKind
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 ContentRefKind
impl Debug for ContentRefKind
Source§impl<'de> Deserialize<'de> for ContentRefKind
impl<'de> Deserialize<'de> for ContentRefKind
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
Source§impl Display for ContentRefKind
impl Display for ContentRefKind
impl Eq for ContentRefKind
Source§impl Hash for ContentRefKind
impl Hash for ContentRefKind
Source§impl PartialEq for ContentRefKind
impl PartialEq for ContentRefKind
Source§impl Serialize for ContentRefKind
impl Serialize for ContentRefKind
impl StructuralPartialEq for ContentRefKind
Auto Trait Implementations§
impl Freeze for ContentRefKind
impl RefUnwindSafe for ContentRefKind
impl Send for ContentRefKind
impl Sync for ContentRefKind
impl Unpin for ContentRefKind
impl UnsafeUnpin for ContentRefKind
impl UnwindSafe for ContentRefKind
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