pub struct Blob {
pub content: Vec<u8>,
}Expand description
Raw file content. Equivalent to Git’s blob.
Fields§
§content: Vec<u8>Implementations§
Trait Implementations§
impl Eq for Blob
Source§impl Object for Blob
impl Object for Blob
Source§const TYPE: ObjectType = ObjectType::Blob
const TYPE: ObjectType = ObjectType::Blob
This object’s wire type.
Source§fn encode_body(&self) -> Result<Vec<u8>>
fn encode_body(&self) -> Result<Vec<u8>>
Canonical byte encoding that is hashed and (after compression) stored.
Source§fn decode_body(bytes: &[u8]) -> Result<Self>
fn decode_body(bytes: &[u8]) -> Result<Self>
Reconstruct an object from its canonical body bytes.
impl StructuralPartialEq for Blob
Auto Trait Implementations§
impl Freeze for Blob
impl RefUnwindSafe for Blob
impl Send for Blob
impl Sync for Blob
impl Unpin for Blob
impl UnsafeUnpin for Blob
impl UnwindSafe for Blob
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