#[non_exhaustive]pub struct ModelPickerLabels {
pub download: String,
pub cancel: String,
pub test: String,
pub testing: String,
pub use_it: String,
pub stop_using: String,
pub in_use: String,
pub remove: String,
pub nothing_fits: String,
pub model: String,
pub downloaded: String,
}Expand description
The words a ModelPicker shows. English by default.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.download: StringDownloads a model.
cancel: StringStops a download.
test: StringTries a model.
testing: StringWhile a model is being tried.
use_it: StringStarts using a model.
stop_using: StringStops using a model.
in_use: StringMarks the model in use.
remove: StringRemoves a model from the machine.
nothing_fits: StringWhen no model fits this machine.
model: StringThe list of models.
downloaded: StringMarks a model that is on this machine.
Implementations§
Source§impl ModelPickerLabels
impl ModelPickerLabels
Sourcepub fn from_texts(texts: &Texts) -> Self
pub fn from_texts(texts: &Texts) -> Self
The texts of a catalog, in its language. What it does not have comes from English.
Trait Implementations§
Source§impl Clone for ModelPickerLabels
impl Clone for ModelPickerLabels
Source§fn clone(&self) -> ModelPickerLabels
fn clone(&self) -> ModelPickerLabels
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 ModelPickerLabels
impl Debug for ModelPickerLabels
Auto Trait Implementations§
impl Freeze for ModelPickerLabels
impl RefUnwindSafe for ModelPickerLabels
impl Send for ModelPickerLabels
impl Sync for ModelPickerLabels
impl Unpin for ModelPickerLabels
impl UnsafeUnpin for ModelPickerLabels
impl UnwindSafe for ModelPickerLabels
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