pub struct HeldDocument {
pub version: B3Hash,
pub format: Format,
pub bytes: u64,
pub body: DocumentBody,
}Expand description
A file with bytes: which version, how long, and what of it a reader is given now.
Fields§
§version: B3HashThe BLAKE3 digest of every byte, which is also the address the
content store gives them (crates/documents/Spec.lean D3).
format: Format§bytes: u64The whole version’s length.
body: DocumentBodyTrait Implementations§
Source§impl Clone for HeldDocument
impl Clone for HeldDocument
Source§impl Debug for HeldDocument
impl Debug for HeldDocument
Source§impl<'de> Deserialize<'de> for HeldDocument
impl<'de> Deserialize<'de> for HeldDocument
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
impl Eq for HeldDocument
Source§impl PartialEq for HeldDocument
impl PartialEq for HeldDocument
Source§impl Serialize for HeldDocument
impl Serialize for HeldDocument
impl StructuralPartialEq for HeldDocument
Auto Trait Implementations§
impl Freeze for HeldDocument
impl RefUnwindSafe for HeldDocument
impl Send for HeldDocument
impl Sync for HeldDocument
impl Unpin for HeldDocument
impl UnsafeUnpin for HeldDocument
impl UnwindSafe for HeldDocument
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