pub struct LayerRef {
pub digest: String,
pub media_type: String,
pub size: i64,
pub urls: Vec<String>,
}Expand description
One base-image layer reference threaded into BuildSkeleton.
Mirrors the subset of an OCI layer descriptor the WCOW builder needs: the digest (content-addressable hash of the compressed blob), the media type (drives decompression + foreign-layer detection), the byte size, and the optional mirror URL list (non-empty for MCR foreign Windows base layers). Subsequent tasks 4.D/4.E pass these descriptors through to the final manifest unchanged.
Fields§
§digest: Stringsha256:... digest of the compressed blob.
media_type: StringOCI media type — e.g.
application/vnd.docker.image.rootfs.foreign.diff.tar.gzip for
MCR foreign Windows layers, or
application/vnd.oci.image.layer.v1.tar+gzip for ordinary OCI
layers.
size: i64Compressed size in bytes (i64 because that’s the type
oci-client uses for descriptor size — keeping the same shape
avoids lossy casts on round-trip).
urls: Vec<String>Optional mirror URLs (foreign layer urls[] per the OCI spec).
Non-empty for MCR Windows base layers; empty for ordinary
registry-resident layers. Preserved verbatim through to the
emitted manifest in task 4.D.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerRef
impl RefUnwindSafe for LayerRef
impl Send for LayerRef
impl Sync for LayerRef
impl Unpin for LayerRef
impl UnsafeUnpin for LayerRef
impl UnwindSafe for LayerRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request