pub struct Manifest {
pub mcid: Mcid,
pub version: u32,
pub name: Vec<u8>,
pub size: u64,
pub created: u64,
pub chunk_size: u64,
pub chunk_count: u64,
pub hash_algorithm: String,
pub root_hash: Hash,
pub chunks: Vec<ChunkInfo>,
}Expand description
A chunked content’s manifest. name is bytes, as the wire carries it, and
hash_algorithm the wire’s own text: a manifest read from a peer may name
anything, and verify_mcid refuses what is not a UTF-8 name and sha384.
Fields§
§mcid: Mcid§version: u32§name: Vec<u8>§size: u64§created: u64Unix seconds.
chunk_size: u64§chunk_count: u64§hash_algorithm: String§root_hash: Hash§chunks: Vec<ChunkInfo>Trait Implementations§
impl Eq for Manifest
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifest
impl UnwindSafe for Manifest
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