pub struct CatalogModel {
pub id: String,
pub display_name: String,
pub kind: TaskKind,
pub vram_gb_estimate: f32,
pub description: Option<String>,
pub source: ModelSource,
pub enabled: bool,
pub origin: String,
pub exclusive_group: Option<String>,
}Expand description
One catalog entry: a model id plus everything needed to run it. Mirrors the
columns of the studio’s studioModels row.
Fields§
§id: StringThe model id the operator references (e.g. z-image-turbo-q4_k_m.gguf).
display_name: StringHuman-readable name shown in the UI.
kind: TaskKindTask kind this model serves.
vram_gb_estimate: f32Device memory the model needs in GiB; admission checks it before a
load or transient job (see docs/runtime/model-lifecycle.md).
description: Option<String>Optional human description.
source: ModelSourceDownload spec + engine + CLI defaults (same shape the studio sends).
enabled: boolWhether the model is selectable.
origin: StringWhere this entry came from: "local" (operator-added / seeded)
or "studio" (mirrored from a studio job offer). A studio
re-offer refreshes studio-origin entries; a local-origin entry
of the same id is never clobbered by the sync.
exclusive_group: Option<String>Models sharing a group are loaded one at a time: loading one unloads the other first.
Trait Implementations§
Source§impl Clone for CatalogModel
impl Clone for CatalogModel
Source§impl Debug for CatalogModel
impl Debug for CatalogModel
Source§impl<'de> Deserialize<'de> for CatalogModel
impl<'de> Deserialize<'de> for CatalogModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CatalogModel
impl PartialEq for CatalogModel
Source§impl Serialize for CatalogModel
impl Serialize for CatalogModel
impl StructuralPartialEq for CatalogModel
Auto Trait Implementations§
impl Freeze for CatalogModel
impl RefUnwindSafe for CatalogModel
impl Send for CatalogModel
impl Sync for CatalogModel
impl Unpin for CatalogModel
impl UnsafeUnpin for CatalogModel
impl UnwindSafe for CatalogModel
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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 more