#[non_exhaustive]pub struct ModelInfo {Show 13 fields
pub id: String,
pub allowed_fallback_models: Option<Vec<String>>,
pub capabilities: Option<ModelCapabilities>,
pub created_at: String,
pub display_name: String,
pub line: Option<Option<String>>,
pub max_input_tokens: Option<i64>,
pub max_tokens: Option<i64>,
pub lifecycle: Option<ModelLifecycle>,
pub deprecated_at: Option<Option<String>>,
pub retires_at: Option<Option<String>>,
pub type_: ModelType,
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§allowed_fallback_models: Option<Vec<String>>§capabilities: Option<ModelCapabilities>§created_at: String§display_name: String§line: Option<Option<String>>Provider-reported model line; new lines are allowed without inferring from IDs.
max_input_tokens: Option<i64>§max_tokens: Option<i64>§lifecycle: Option<ModelLifecycle>§deprecated_at: Option<Option<String>>§retires_at: Option<Option<String>>§type_: ModelType§rest: RestImplementations§
Source§impl ModelInfo
impl ModelInfo
Sourcepub fn builder(
id: String,
allowed_fallback_models: Option<Vec<String>>,
capabilities: Option<ModelCapabilities>,
created_at: String,
display_name: String,
max_input_tokens: Option<i64>,
max_tokens: Option<i64>,
type_: ModelType,
) -> ModelInfoBuilder
pub fn builder( id: String, allowed_fallback_models: Option<Vec<String>>, capabilities: Option<ModelCapabilities>, created_at: String, display_name: String, max_input_tokens: Option<i64>, max_tokens: Option<i64>, type_: ModelType, ) -> ModelInfoBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl DeclaredFields for ModelInfo
impl DeclaredFields for ModelInfo
fn into_declared(self) -> Self
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 Eq for ModelInfo
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