pub struct ModelFamily {
pub family: String,
pub provider: Provider,
pub supports_reasoning_summaries: bool,
/* private fields */
}Expand description
A model family groups models that share certain characteristics.
Fields§
§family: StringThe model family name (e.g., “gemini-2.5”, “claude-opus”)
provider: ProviderThe provider this model belongs to
supports_reasoning_summaries: boolWhether the model supports reasoning summaries
Implementations§
Source§impl ModelFamily
impl ModelFamily
Sourcepub fn get_model_slug(&self) -> &str
pub fn get_model_slug(&self) -> &str
Get the model slug
Trait Implementations§
Source§impl Clone for ModelFamily
impl Clone for ModelFamily
Source§fn clone(&self) -> ModelFamily
fn clone(&self) -> ModelFamily
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelFamily
impl Debug for ModelFamily
Source§impl Default for ModelFamily
impl Default for ModelFamily
Source§impl<'de> Deserialize<'de> for ModelFamily
impl<'de> Deserialize<'de> for ModelFamily
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
Source§impl PartialEq for ModelFamily
impl PartialEq for ModelFamily
Source§impl Serialize for ModelFamily
impl Serialize for ModelFamily
impl StructuralPartialEq for ModelFamily
Auto Trait Implementations§
impl Freeze for ModelFamily
impl RefUnwindSafe for ModelFamily
impl Send for ModelFamily
impl Sync for ModelFamily
impl Unpin for ModelFamily
impl UnsafeUnpin for ModelFamily
impl UnwindSafe for ModelFamily
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