pub struct Status {
pub value: String,
pub args: Option<Vec<String>>,
pub failed: Option<bool>,
pub exit_code: Option<i64>,
pub progress: Option<Value>,
}Expand description
A model’s state on the server.
Fields§
§value: Stringunloaded, loading, loaded, downloading or sleeping.
args: Option<Vec<String>>The server’s arguments for the model.
failed: Option<bool>Whether its last load failed.
exit_code: Option<i64>The exit code of a failed load.
progress: Option<Value>Download progress by file: {done, total}.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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 StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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