pub struct ReasoningMetadata {
pub mode_used: ReasoningMode,
pub thinking: Option<String>,
pub iterations: u32,
pub auto_detected: bool,
}Fields§
§mode_used: ReasoningMode§thinking: Option<String>§iterations: u32§auto_detected: boolImplementations§
Source§impl ReasoningMetadata
impl ReasoningMetadata
pub fn new(mode_used: ReasoningMode) -> Self
pub fn with_thinking(self, thinking: impl Into<String>) -> Self
pub fn with_iterations(self, iterations: u32) -> Self
pub fn with_auto_detected(self, auto_detected: bool) -> Self
pub fn has_thinking(&self) -> bool
Trait Implementations§
Source§impl Clone for ReasoningMetadata
impl Clone for ReasoningMetadata
Source§fn clone(&self) -> ReasoningMetadata
fn clone(&self) -> ReasoningMetadata
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 ReasoningMetadata
impl Debug for ReasoningMetadata
Source§impl Default for ReasoningMetadata
impl Default for ReasoningMetadata
Source§impl<'de> Deserialize<'de> for ReasoningMetadata
impl<'de> Deserialize<'de> for ReasoningMetadata
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
Auto Trait Implementations§
impl Freeze for ReasoningMetadata
impl RefUnwindSafe for ReasoningMetadata
impl Send for ReasoningMetadata
impl Sync for ReasoningMetadata
impl Unpin for ReasoningMetadata
impl UnsafeUnpin for ReasoningMetadata
impl UnwindSafe for ReasoningMetadata
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