pub enum Kind {
Base(Kind),
DeltaRef {
object_index: usize,
},
DeltaOid {
id: ObjectId,
},
}
Available on crate feature
generate
only.Expand description
The kind of pack entry to be written
Variants§
Base(Kind)
A complete base object, including its kind
DeltaRef
A delta against the object with the given index. It’s always an index that was already encountered to refer only to object we have written already.
Fields
DeltaOid
A delta against the given object as identified by its ObjectId
.
This is the case for thin packs only, i.e. those that are sent over the wire.
Note that there is the option of the ObjectId
being used to refer to an object within
the same pack, but it’s a discontinued practice which won’t be encountered here.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Kind
impl<'de> Deserialize<'de> for Kind
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 Ord for Kind
impl Ord for Kind
Source§impl PartialOrd for Kind
impl PartialOrd for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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