pub struct CurrentModel {
pub requested_id: Option<String>,
pub resolved_id: String,
pub display_name_short: String,
pub display_name_long: String,
pub catalog_id: Option<String>,
pub supports_effort: bool,
pub supported_effort_levels: Vec<EffortLevel>,
pub supports_auto_mode: Option<bool>,
pub supports_adaptive_thinking: Option<bool>,
pub is_authoritative: bool,
}Fields§
§requested_id: Option<String>§resolved_id: String§display_name_short: String§display_name_long: String§catalog_id: Option<String>§supports_effort: bool§supported_effort_levels: Vec<EffortLevel>§supports_auto_mode: Option<bool>§supports_adaptive_thinking: Option<bool>Implementations§
Source§impl CurrentModel
impl CurrentModel
pub fn new( resolved_id: impl Into<String>, display_name_short: impl Into<String>, display_name_long: impl Into<String>, ) -> Self
pub fn requested_id(self, requested_id: impl Into<String>) -> Self
pub fn catalog_id(self, catalog_id: impl Into<String>) -> Self
pub fn supports_effort(self, supports_effort: bool) -> Self
pub fn supported_effort_levels( self, supported_effort_levels: Vec<EffortLevel>, ) -> Self
pub fn supports_adaptive_thinking( self, supports_adaptive_thinking: Option<bool>, ) -> Self
pub fn supports_auto_mode(self, supports_auto_mode: Option<bool>) -> Self
Trait Implementations§
Source§impl Clone for CurrentModel
impl Clone for CurrentModel
Source§impl Debug for CurrentModel
impl Debug for CurrentModel
Source§impl<'de> Deserialize<'de> for CurrentModel
impl<'de> Deserialize<'de> for CurrentModel
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 CurrentModel
Source§impl PartialEq for CurrentModel
impl PartialEq for CurrentModel
Source§impl Serialize for CurrentModel
impl Serialize for CurrentModel
impl StructuralPartialEq for CurrentModel
Auto Trait Implementations§
impl Freeze for CurrentModel
impl RefUnwindSafe for CurrentModel
impl Send for CurrentModel
impl Sync for CurrentModel
impl Unpin for CurrentModel
impl UnsafeUnpin for CurrentModel
impl UnwindSafe for CurrentModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.