pub struct FileChunk {
pub sequence_no: u64,
pub container: Container,
pub id: String,
pub total_bytes: u64,
pub chunk_size: u64,
pub context: Option<String>,
pub chunk_bytes: Vec<u8>,
}
Expand description
Represents a single chunk that may comprise part of a file or an entire file. The fields for sequence number, total bytes and chunk bytes should be used to determine the chunk order, as well as the optional context field.
Fields§
§sequence_no: u64
§container: Container
§id: String
§total_bytes: u64
§chunk_size: u64
§context: Option<String>
§chunk_bytes: Vec<u8>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileChunk
impl<'de> Deserialize<'de> for FileChunk
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 StructuralPartialEq for FileChunk
Auto Trait Implementations§
impl Freeze for FileChunk
impl RefUnwindSafe for FileChunk
impl Send for FileChunk
impl Sync for FileChunk
impl Unpin for FileChunk
impl UnwindSafe for FileChunk
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