pub struct ModelHints {
pub preferred: Vec<String>,
pub reject: Vec<String>,
}Expand description
Optional model hints.
Fields§
§preferred: Vec<String>Ordered list of preferred model identifiers.
reject: Vec<String>Model identifiers to reject.
Trait Implementations§
Source§impl Clone for ModelHints
impl Clone for ModelHints
Source§fn clone(&self) -> ModelHints
fn clone(&self) -> ModelHints
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 ModelHints
impl Debug for ModelHints
Source§impl Default for ModelHints
impl Default for ModelHints
Source§fn default() -> ModelHints
fn default() -> ModelHints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelHints
impl<'de> Deserialize<'de> for ModelHints
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
Auto Trait Implementations§
impl Freeze for ModelHints
impl RefUnwindSafe for ModelHints
impl Send for ModelHints
impl Sync for ModelHints
impl Unpin for ModelHints
impl UnsafeUnpin for ModelHints
impl UnwindSafe for ModelHints
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