pub struct ModelChoice {
pub name: String,
pub details: String,
pub status: ModelStatus,
pub in_use: bool,
pub result: Option<String>,
pub error: Option<String>,
}Expand description
A model offered by a ModelPicker.
Fields§
§name: StringIts name.
details: StringWhat to know before downloading it, such as its size and license.
status: ModelStatusWhere it stands.
in_use: boolWhether the app is using it.
result: Option<String>How it did when tried, in words.
error: Option<String>What went wrong the last time, in words.
Trait Implementations§
Source§impl Clone for ModelChoice
impl Clone for ModelChoice
Source§fn clone(&self) -> ModelChoice
fn clone(&self) -> ModelChoice
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 ModelChoice
impl Debug for ModelChoice
Source§impl PartialEq for ModelChoice
impl PartialEq for ModelChoice
impl StructuralPartialEq for ModelChoice
Auto Trait Implementations§
impl Freeze for ModelChoice
impl RefUnwindSafe for ModelChoice
impl Send for ModelChoice
impl Sync for ModelChoice
impl Unpin for ModelChoice
impl UnsafeUnpin for ModelChoice
impl UnwindSafe for ModelChoice
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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