#[non_exhaustive]pub struct ModelInfo {
pub id: ClaudeModel,
pub allowed_fallback_models: Option<Vec<ClaudeModel>>,
pub type_: ModelObjectType,
pub created_at: String,
pub display_name: String,
pub max_input_tokens: Option<u64>,
pub max_tokens: Option<u64>,
pub capabilities: Option<ModelCapabilities>,
pub extra: JsonObject,
}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: ClaudeModel§allowed_fallback_models: Option<Vec<ClaudeModel>>§type_: ModelObjectType§created_at: String§display_name: String§max_input_tokens: Option<u64>§max_tokens: Option<u64>§capabilities: Option<ModelCapabilities>§extra: JsonObjectImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelInfo
impl<'de> Deserialize<'de> for ModelInfo
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 ModelInfo
Auto Trait Implementations§
impl Freeze for ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnsafeUnpin for ModelInfo
impl UnwindSafe for ModelInfo
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