pub struct ModelMetadata {Show 23 fields
pub id: String,
pub provider: String,
pub display_name: Option<String>,
pub description: Option<String>,
pub owned_by: Option<String>,
pub created: Option<i64>,
pub context_length: Option<u32>,
pub max_input_tokens: Option<u32>,
pub max_output_tokens: Option<u32>,
pub input_price_per_m: Option<f64>,
pub output_price_per_m: Option<f64>,
pub supports_tools: bool,
pub supports_vision: bool,
pub supports_audio: bool,
pub supports_reasoning: bool,
pub supports_code: bool,
pub supports_function_calling: bool,
pub supports_json_mode: bool,
pub supports_streaming: bool,
pub model_type: ModelType,
pub is_deprecated: bool,
pub is_fine_tunable: bool,
pub raw_data: Value,
}Fields§
§id: String§provider: String§display_name: Option<String>§description: Option<String>§owned_by: Option<String>§created: Option<i64>§context_length: Option<u32>§max_input_tokens: Option<u32>§max_output_tokens: Option<u32>§input_price_per_m: Option<f64>§output_price_per_m: Option<f64>§supports_tools: boolOnly set to true when provider JSON explicitly indicates tool/function calling support
supports_vision: boolOnly set to true when provider JSON explicitly indicates vision/image processing support
supports_audio: boolOnly set to true when provider JSON explicitly indicates audio processing support
supports_reasoning: boolOnly set to true when provider JSON explicitly indicates advanced reasoning capabilities
supports_code: boolOnly set to true when provider JSON explicitly indicates code generation support
supports_function_calling: boolOnly set to true when provider JSON explicitly indicates function calling support
supports_json_mode: boolOnly set to true when provider JSON explicitly indicates JSON mode support
supports_streaming: boolOnly set to true when provider JSON explicitly indicates streaming support
model_type: ModelType§is_deprecated: boolOnly set to true when provider JSON explicitly indicates the model is deprecated
is_fine_tunable: boolOnly set to true when provider JSON explicitly indicates the model supports fine-tuning
raw_data: ValueTrait Implementations§
Source§impl Clone for ModelMetadata
impl Clone for ModelMetadata
Source§fn clone(&self) -> ModelMetadata
fn clone(&self) -> ModelMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelMetadata
impl Debug for ModelMetadata
Source§impl Default for ModelMetadata
impl Default for ModelMetadata
Source§impl<'de> Deserialize<'de> for ModelMetadata
impl<'de> Deserialize<'de> for ModelMetadata
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>,
Auto Trait Implementations§
impl Freeze for ModelMetadata
impl RefUnwindSafe for ModelMetadata
impl Send for ModelMetadata
impl Sync for ModelMetadata
impl Unpin for ModelMetadata
impl UnwindSafe for ModelMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more