#[non_exhaustive]pub enum ReasoningContent {
Text {
text: String,
signature: Option<String>,
},
Encrypted(String),
Redacted {
data: String,
},
Summary(String),
}Expand description
A typed reasoning block used by providers that emit structured thinking data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
Plain reasoning text with an optional provider signature.
Encrypted(String)
Provider-encrypted reasoning payload.
Redacted
Redacted reasoning payload preserved as opaque data.
Summary(String)
Provider-generated reasoning summary text.
Trait Implementations§
Source§impl Clone for ReasoningContent
impl Clone for ReasoningContent
Source§fn clone(&self) -> ReasoningContent
fn clone(&self) -> ReasoningContent
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 ReasoningContent
impl Debug for ReasoningContent
Source§impl<'de> Deserialize<'de> for ReasoningContent
impl<'de> Deserialize<'de> for ReasoningContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReasoningContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReasoningContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReasoningContent
impl PartialEq for ReasoningContent
Source§impl Serialize for ReasoningContent
impl Serialize for ReasoningContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ReasoningContent
Auto Trait Implementations§
impl Freeze for ReasoningContent
impl RefUnwindSafe for ReasoningContent
impl Send for ReasoningContent
impl Sync for ReasoningContent
impl Unpin for ReasoningContent
impl UnsafeUnpin for ReasoningContent
impl UnwindSafe for ReasoningContent
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