pub enum ReasoningEffort {
Low,
Medium,
High,
Xhigh,
}Variants§
Implementations§
Source§impl ReasoningEffort
impl ReasoningEffort
pub fn as_str(self) -> &'static str
pub fn all() -> &'static [ReasoningEffort]
Sourcepub fn cycle_within(current: Option<Self>, levels: &[Self]) -> Option<Self>
pub fn cycle_within(current: Option<Self>, levels: &[Self]) -> Option<Self>
Cycles through only the given levels, wrapping to None after the last.
Returns None when levels is empty.
Sourcepub fn clamp_to(self, levels: &[Self]) -> Self
pub fn clamp_to(self, levels: &[Self]) -> Self
Returns self if it’s in levels, otherwise the highest level ≤ self by ordinal.
Falls back to the first element of levels. Panics if levels is empty.
Sourcepub fn config_str(effort: Option<Self>) -> &'static str
pub fn config_str(effort: Option<Self>) -> &'static str
Converts Option<ReasoningEffort> to a config string value.
Trait Implementations§
Source§impl Clone for ReasoningEffort
impl Clone for ReasoningEffort
Source§fn clone(&self) -> ReasoningEffort
fn clone(&self) -> ReasoningEffort
Returns a duplicate of the value. Read more
1.0.0 · 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 ReasoningEffort
impl Debug for ReasoningEffort
Source§impl<'de> Deserialize<'de> for ReasoningEffort
impl<'de> Deserialize<'de> for ReasoningEffort
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 Display for ReasoningEffort
impl Display for ReasoningEffort
Source§impl FromStr for ReasoningEffort
impl FromStr for ReasoningEffort
Source§impl Hash for ReasoningEffort
impl Hash for ReasoningEffort
Source§impl PartialEq for ReasoningEffort
impl PartialEq for ReasoningEffort
Source§impl Serialize for ReasoningEffort
impl Serialize for ReasoningEffort
impl Copy for ReasoningEffort
impl Eq for ReasoningEffort
impl StructuralPartialEq for ReasoningEffort
Auto Trait Implementations§
impl Freeze for ReasoningEffort
impl RefUnwindSafe for ReasoningEffort
impl Send for ReasoningEffort
impl Sync for ReasoningEffort
impl Unpin for ReasoningEffort
impl UnsafeUnpin for ReasoningEffort
impl UnwindSafe for ReasoningEffort
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.