pub struct LayerInventory {
pub model_id: String,
pub package_ref: String,
pub manifest_sha256: String,
pub layer_count: u32,
pub ready_ranges: Vec<LayerRange>,
pub available_ranges: Vec<LayerRange>,
pub missing_ranges: Vec<LayerRange>,
pub preparing_ranges: Vec<StagePreparationStatus>,
pub source_model_path: Option<String>,
pub source_model_bytes: Option<u64>,
pub source_model_kind: i32,
}Fields§
§model_id: String§package_ref: String§manifest_sha256: String§layer_count: u32§ready_ranges: Vec<LayerRange>§available_ranges: Vec<LayerRange>§missing_ranges: Vec<LayerRange>§preparing_ranges: Vec<StagePreparationStatus>§source_model_path: Option<String>§source_model_bytes: Option<u64>§source_model_kind: i32Implementations§
Source§impl LayerInventory
impl LayerInventory
Sourcepub fn source_model_path(&self) -> &str
pub fn source_model_path(&self) -> &str
Returns the value of source_model_path, or the default value if source_model_path is unset.
Sourcepub fn source_model_bytes(&self) -> u64
pub fn source_model_bytes(&self) -> u64
Returns the value of source_model_bytes, or the default value if source_model_bytes is unset.
Sourcepub fn source_model_kind(&self) -> SourceModelKind
pub fn source_model_kind(&self) -> SourceModelKind
Returns the enum value of source_model_kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_source_model_kind(&mut self, value: SourceModelKind)
pub fn set_source_model_kind(&mut self, value: SourceModelKind)
Sets source_model_kind to the provided enum value.
Trait Implementations§
Source§impl Clone for LayerInventory
impl Clone for LayerInventory
Source§fn clone(&self) -> LayerInventory
fn clone(&self) -> LayerInventory
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 LayerInventory
impl Debug for LayerInventory
Source§impl Default for LayerInventory
impl Default for LayerInventory
Source§impl Message for LayerInventory
impl Message for LayerInventory
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for LayerInventory
impl PartialEq for LayerInventory
impl StructuralPartialEq for LayerInventory
Auto Trait Implementations§
impl Freeze for LayerInventory
impl RefUnwindSafe for LayerInventory
impl Send for LayerInventory
impl Sync for LayerInventory
impl Unpin for LayerInventory
impl UnsafeUnpin for LayerInventory
impl UnwindSafe for LayerInventory
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