#[non_exhaustive]pub struct Model {Show 15 fields
pub name: Option<String>,
pub base_model_id: Option<String>,
pub version: Option<String>,
pub display_name: Option<String>,
pub description: Option<String>,
pub input_token_limit: Option<i32>,
pub output_token_limit: Option<i32>,
pub supported_generation_methods: Vec<SupportedGenerationMethod>,
pub supported_actions: Vec<SupportedGenerationMethod>,
pub thinking: Option<bool>,
pub temperature: Option<f64>,
pub max_temperature: Option<f64>,
pub top_p: Option<f64>,
pub top_k: Option<i32>,
pub extra: ExtraFields,
}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.name: Option<String>§base_model_id: Option<String>§version: Option<String>§display_name: Option<String>§description: Option<String>§input_token_limit: Option<i32>§output_token_limit: Option<i32>§supported_generation_methods: Vec<SupportedGenerationMethod>§supported_actions: Vec<SupportedGenerationMethod>§thinking: Option<bool>§temperature: Option<f64>§max_temperature: Option<f64>§top_p: Option<f64>§top_k: Option<i32>§extra: ExtraFieldsImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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