pub struct ObjectHeader {
pub name: ObjectName,
pub encoding: Encoding,
}Expand description
The message that starts one object in the object stream.
Fields§
§name: ObjectNameThe type and the checksum of the object.
For a CommitMeta object, the checksum is the checksum of its commit.
encoding: EncodingThe encoding of the object bytes.
Encoding::Deflate is allowed for a file object alone.
Trait Implementations§
Source§impl Clone for ObjectHeader
impl Clone for ObjectHeader
Source§impl Debug for ObjectHeader
impl Debug for ObjectHeader
impl Eq for ObjectHeader
Source§impl PartialEq for ObjectHeader
impl PartialEq for ObjectHeader
impl StructuralPartialEq for ObjectHeader
Auto Trait Implementations§
impl Forget for ObjectHeader
impl Freeze for ObjectHeader
impl Move for ObjectHeader
impl RefUnwindSafe for ObjectHeader
impl Send for ObjectHeader
impl Sync for ObjectHeader
impl Unpin for ObjectHeader
impl UnsafeUnpin for ObjectHeader
impl UnwindSafe for ObjectHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.