pub struct ThinkingDelta {
pub thinking: String,
}Available on crate feature
anthropic-client only.Expand description
A thinking delta, representing a piece of thinking in a streaming response.
Fields§
§thinking: StringThe thinking content.
Implementations§
Source§impl ThinkingDelta
impl ThinkingDelta
Sourcepub fn new(thinking: String) -> ThinkingDelta
pub fn new(thinking: String) -> ThinkingDelta
Create a new ThinkingDelta with the given thinking text.
Trait Implementations§
Source§impl Clone for ThinkingDelta
impl Clone for ThinkingDelta
Source§fn clone(&self) -> ThinkingDelta
fn clone(&self) -> ThinkingDelta
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 ThinkingDelta
impl Debug for ThinkingDelta
Source§impl<'de> Deserialize<'de> for ThinkingDelta
impl<'de> Deserialize<'de> for ThinkingDelta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThinkingDelta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThinkingDelta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for ThinkingDelta
impl FromStr for ThinkingDelta
Source§type Err = Infallible
type Err = Infallible
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<ThinkingDelta, <ThinkingDelta as FromStr>::Err>
fn from_str(s: &str) -> Result<ThinkingDelta, <ThinkingDelta as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for ThinkingDelta
impl PartialEq for ThinkingDelta
Source§fn eq(&self, other: &ThinkingDelta) -> bool
fn eq(&self, other: &ThinkingDelta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ThinkingDelta
impl Serialize for ThinkingDelta
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 ThinkingDelta
Auto Trait Implementations§
impl Freeze for ThinkingDelta
impl RefUnwindSafe for ThinkingDelta
impl Send for ThinkingDelta
impl Sync for ThinkingDelta
impl Unpin for ThinkingDelta
impl UnsafeUnpin for ThinkingDelta
impl UnwindSafe for ThinkingDelta
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