pub struct FileBlob {
pub bytes: Vec<u8>,
pub sha256: String,
}Expand description
One live file: its bytes and their lowercase hex SHA-256.
Fields§
§bytes: Vec<u8>Raw file bytes.
sha256: StringLowercase hex SHA-256 of bytes.
Trait Implementations§
impl Eq for FileBlob
impl StructuralPartialEq for FileBlob
Auto Trait Implementations§
impl Forget for FileBlob
impl Freeze for FileBlob
impl Move for FileBlob
impl RefUnwindSafe for FileBlob
impl Send for FileBlob
impl Sync for FileBlob
impl Unpin for FileBlob
impl UnsafeUnpin for FileBlob
impl UnwindSafe for FileBlob
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.