pub struct AvailableModel {
pub id: String,
pub display_name: String,
pub description: Option<String>,
pub supports_effort: bool,
pub supported_effort_levels: Vec<EffortLevel>,
pub supports_adaptive_thinking: Option<bool>,
pub supports_auto_mode: Option<bool>,
}Fields§
§id: String§display_name: String§description: Option<String>§supports_effort: bool§supported_effort_levels: Vec<EffortLevel>§supports_adaptive_thinking: Option<bool>§supports_auto_mode: Option<bool>Implementations§
Source§impl AvailableModel
impl AvailableModel
pub fn new(id: impl Into<String>, display_name: impl Into<String>) -> Self
pub fn description(self, description: 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 AvailableModel
impl Clone for AvailableModel
Source§impl Debug for AvailableModel
impl Debug for AvailableModel
Source§impl<'de> Deserialize<'de> for AvailableModel
impl<'de> Deserialize<'de> for AvailableModel
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 AvailableModel
Source§impl PartialEq for AvailableModel
impl PartialEq for AvailableModel
Source§impl Serialize for AvailableModel
impl Serialize for AvailableModel
impl StructuralPartialEq for AvailableModel
Auto Trait Implementations§
impl Freeze for AvailableModel
impl RefUnwindSafe for AvailableModel
impl Send for AvailableModel
impl Sync for AvailableModel
impl Unpin for AvailableModel
impl UnsafeUnpin for AvailableModel
impl UnwindSafe for AvailableModel
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.