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§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more