pub struct ModelSelection {
pub primary: Option<Cow<'static, str>>,
pub fallbacks: Option<Vec<Cow<'static, str>>>,
}Fields§
§primary: Option<Cow<'static, str>>Borrowed model names must be truly 'static; runtime-derived values
should use Cow::Owned.
fallbacks: Option<Vec<Cow<'static, str>>>Borrowed model names must be truly 'static; runtime-derived values
should use Cow::Owned.
Trait Implementations§
Source§impl Clone for ModelSelection
impl Clone for ModelSelection
Source§fn clone(&self) -> ModelSelection
fn clone(&self) -> ModelSelection
Returns a duplicate of the value. Read more
1.0.0 · 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 ModelSelection
impl Debug for ModelSelection
Source§impl Default for ModelSelection
impl Default for ModelSelection
Source§fn default() -> ModelSelection
fn default() -> ModelSelection
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModelSelection
impl PartialEq for ModelSelection
impl Eq for ModelSelection
impl StructuralPartialEq for ModelSelection
Auto Trait Implementations§
impl Freeze for ModelSelection
impl RefUnwindSafe for ModelSelection
impl Send for ModelSelection
impl Sync for ModelSelection
impl Unpin for ModelSelection
impl UnsafeUnpin for ModelSelection
impl UnwindSafe for ModelSelection
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