pub struct ReasoningResolution { /* private fields */ }Expand description
Result of resolving a requested reasoning level for one model.
Implementations§
Source§impl ReasoningResolution
impl ReasoningResolution
Sourcepub const fn requested(self) -> ReasoningEffort
pub const fn requested(self) -> ReasoningEffort
Returns the caller’s requested level.
Sourcepub const fn effective(self) -> ReasoningEffort
pub const fn effective(self) -> ReasoningEffort
Returns the supported level selected for the model.
Sourcepub fn was_clamped(self) -> bool
pub fn was_clamped(self) -> bool
Returns whether resolution changed the caller’s request.
Trait Implementations§
Source§impl Clone for ReasoningResolution
impl Clone for ReasoningResolution
Source§fn clone(&self) -> ReasoningResolution
fn clone(&self) -> ReasoningResolution
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 moreimpl Copy for ReasoningResolution
Source§impl Debug for ReasoningResolution
impl Debug for ReasoningResolution
impl Eq for ReasoningResolution
Source§impl PartialEq for ReasoningResolution
impl PartialEq for ReasoningResolution
impl StructuralPartialEq for ReasoningResolution
Auto Trait Implementations§
impl Freeze for ReasoningResolution
impl RefUnwindSafe for ReasoningResolution
impl Send for ReasoningResolution
impl Sync for ReasoningResolution
impl Unpin for ReasoningResolution
impl UnsafeUnpin for ReasoningResolution
impl UnwindSafe for ReasoningResolution
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