#[non_exhaustive]pub struct Model {Show 21 fields
pub id: String,
pub created: Option<i64>,
pub object: ModelObject,
pub owned_by: Option<String>,
pub display_name: Option<String>,
pub description: Option<String>,
pub instructions: Option<String>,
pub context_window: Option<u64>,
pub max_context_window: Option<u64>,
pub max_output_tokens: Option<u64>,
pub thinking_supported: Option<bool>,
pub input_modalities: Option<Vec<String>>,
pub output_modalities: Option<Vec<String>>,
pub supported_parameters: Option<Vec<String>>,
pub supported_reasoning_levels: Option<Vec<ModelReasoningLevel>>,
pub default_reasoning_level: Option<String>,
pub service_tiers: Option<Vec<ModelServiceTier>>,
pub default_service_tier: Option<String>,
pub generation_methods: Option<Vec<String>>,
pub supported_actions: Option<Vec<String>>,
pub rest: Rest,
}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.id: String§created: Option<i64>Some compatible catalogs do not report a creation timestamp.
object: ModelObject§owned_by: Option<String>§display_name: Option<String>§description: Option<String>§instructions: Option<String>§context_window: Option<u64>§max_context_window: Option<u64>§max_output_tokens: Option<u64>§thinking_supported: Option<bool>§input_modalities: Option<Vec<String>>§output_modalities: Option<Vec<String>>§supported_parameters: Option<Vec<String>>§supported_reasoning_levels: Option<Vec<ModelReasoningLevel>>§default_reasoning_level: Option<String>§service_tiers: Option<Vec<ModelServiceTier>>§default_service_tier: Option<String>§generation_methods: Option<Vec<String>>§supported_actions: Option<Vec<String>>§rest: RestImplementations§
Trait Implementations§
Source§impl DeclaredFields for Model
impl DeclaredFields for Model
fn into_declared(self) -> Self
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 Eq for Model
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