pub struct ModelInfo {
pub name: String,
pub loaded: bool,
pub inputs: Vec<String>,
pub outputs: Vec<String>,
pub dims: ModelDims,
pub state: Option<ModelState>,
pub profiles: HashMap<String, Value>,
pub last_error: Option<String>,
pub max_sequence_length: Option<u32>,
pub revision: Option<String>,
pub capabilities: ModelCapabilities,
}Expand description
One entry of the model catalogue.
Fields§
§name: String§loaded: bool§inputs: Vec<String>§outputs: Vec<String>§dims: ModelDims§state: Option<ModelState>Lifecycle state on the worker that holds it.
profiles: HashMap<String, Value>Named profile variants, when the model advertises more than one.
last_error: Option<String>Why the last load attempt failed, when one did.
max_sequence_length: Option<u32>§revision: Option<String>§capabilities: ModelCapabilitiesTrait Implementations§
Source§impl<'de> Deserialize<'de> for ModelInfo
impl<'de> Deserialize<'de> for ModelInfo
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelInfo
impl StructuralPartialEq for ModelInfo
Auto Trait Implementations§
impl Freeze for ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnsafeUnpin for ModelInfo
impl UnwindSafe for ModelInfo
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.