pub struct OnDeviceModelResponse {
pub loaded: Option<String>,
pub selected: Option<String>,
pub models: Vec<OnDeviceModelEntry>,
}Expand description
Response envelope for GET /api/on-device-model.
Fields§
§loaded: Option<String>ID of the model currently loaded in the daemon, if any.
selected: Option<String>ID the user has selected in config; may differ from loaded when a download is pending or a restart is needed.
models: Vec<OnDeviceModelEntry>All available models with per-model cache/download state.
Trait Implementations§
Source§impl Clone for OnDeviceModelResponse
impl Clone for OnDeviceModelResponse
Source§fn clone(&self) -> OnDeviceModelResponse
fn clone(&self) -> OnDeviceModelResponse
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 OnDeviceModelResponse
impl Debug for OnDeviceModelResponse
Source§impl<'de> Deserialize<'de> for OnDeviceModelResponse
impl<'de> Deserialize<'de> for OnDeviceModelResponse
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
Source§impl PartialEq for OnDeviceModelResponse
impl PartialEq for OnDeviceModelResponse
Source§impl Serialize for OnDeviceModelResponse
impl Serialize for OnDeviceModelResponse
impl StructuralPartialEq for OnDeviceModelResponse
Auto Trait Implementations§
impl Freeze for OnDeviceModelResponse
impl RefUnwindSafe for OnDeviceModelResponse
impl Send for OnDeviceModelResponse
impl Sync for OnDeviceModelResponse
impl Unpin for OnDeviceModelResponse
impl UnsafeUnpin for OnDeviceModelResponse
impl UnwindSafe for OnDeviceModelResponse
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