pub struct RangeFrame {
pub offset: u64,
pub length: u64,
pub bytes: String,
pub complete: bool,
pub total_length: Option<u64>,
pub chunk_lens: Option<Vec<u64>>,
pub chunk_index: Option<u64>,
pub inclusion_proof: Option<String>,
pub root: Option<HexId>,
}Expand description
One range frame of a resource. The first frame (offset == 0) carries the
per-resource verification metadata; later frames carry only the window.
Fields§
§offset: u64The window start offset (echoed).
length: u64This window’s byte length.
bytes: StringThis window’s ciphertext, base64.
complete: boolWhether this frame ends the resource.
total_length: Option<u64>The full resource ciphertext length. First frame only.
chunk_lens: Option<Vec<u64>>Per-chunk ciphertext lengths of the full resource. First frame only.
chunk_index: Option<u64>This frame’s chunk index. First frame only (0).
inclusion_proof: Option<String>Whole-resource merkle proof, base64. First frame only.
root: Option<HexId>The chain-anchored root (64-hex). First frame only.
Trait Implementations§
Source§impl Clone for RangeFrame
impl Clone for RangeFrame
Source§fn clone(&self) -> RangeFrame
fn clone(&self) -> RangeFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RangeFrame
impl Debug for RangeFrame
Source§impl<'de> Deserialize<'de> for RangeFrame
impl<'de> Deserialize<'de> for RangeFrame
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
Source§impl PartialEq for RangeFrame
impl PartialEq for RangeFrame
Source§impl Serialize for RangeFrame
impl Serialize for RangeFrame
impl StructuralPartialEq for RangeFrame
Auto Trait Implementations§
impl Freeze for RangeFrame
impl RefUnwindSafe for RangeFrame
impl Send for RangeFrame
impl Sync for RangeFrame
impl Unpin for RangeFrame
impl UnsafeUnpin for RangeFrame
impl UnwindSafe for RangeFrame
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