pub struct SegmentRef {
pub url: String,
pub size: u64,
pub blake3_16: String,
}Expand description
One immutable segment: where it is and what it must be. url is either
absolute http(s):// or relative to the manifest’s own location. size
and blake3_16 (hex of header bytes 8..24, the content hash) pin the exact
artifact — the same release contract datasets.lock.json uses.
Fields§
§url: StringWhere the segment lives: absolute http(s)://, or relative to the manifest.
size: u64The exact file size in bytes.
blake3_16: StringHex of the 16-byte blake3 content hash (header bytes 8..24).
Trait Implementations§
Source§impl Clone for SegmentRef
impl Clone for SegmentRef
Source§fn clone(&self) -> SegmentRef
fn clone(&self) -> SegmentRef
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 SegmentRef
impl Debug for SegmentRef
impl Eq for SegmentRef
Source§impl PartialEq for SegmentRef
impl PartialEq for SegmentRef
impl StructuralPartialEq for SegmentRef
Auto Trait Implementations§
impl Freeze for SegmentRef
impl RefUnwindSafe for SegmentRef
impl Send for SegmentRef
impl Sync for SegmentRef
impl Unpin for SegmentRef
impl UnsafeUnpin for SegmentRef
impl UnwindSafe for SegmentRef
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