pub struct ModelSummary {
pub id: String,
pub reference: String,
pub name: Option<String>,
pub architecture: Architecture,
pub source: Source,
pub source_local: bool,
pub prepared: bool,
pub precisions: Vec<u32>,
pub owned_bytes: u64,
pub external_bytes: u64,
}Expand description
Current availability and storage totals for a registered model.
Fields§
§id: StringStable catalog ID.
reference: StringResolvable selector: alias, full source reference, or ID when ambiguous.
name: Option<String>Optional model alias.
architecture: ArchitectureArchitecture recorded in the source description.
source: SourceOriginal source identity.
source_local: boolWhether the local source path or a retained HF source currently exists.
prepared: boolWhether the referenced prepared artifact path exists.
precisions: Vec<u32>Expert bit widths reported by super::prepared_precisions, descending.
owned_bytes: u64Referenced file lengths, not filesystem blocks reclaimed by removal.
external_bytes: u64File lengths in referenced external artifacts; excludes untracked source files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelSummary
impl RefUnwindSafe for ModelSummary
impl Send for ModelSummary
impl Sync for ModelSummary
impl Unpin for ModelSummary
impl UnsafeUnpin for ModelSummary
impl UnwindSafe for ModelSummary
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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