pub enum AnthropicDelta {
ThinkingDelta {
thinking: String,
},
TextDelta {
text: String,
},
InputJsonDelta {
partial_json: String,
},
SignatureDelta {
signature: String,
},
CitationsDelta {
citation: Value,
},
}Expand description
Delta content in a streaming content_block_delta event.
Variants§
ThinkingDelta
TextDelta
InputJsonDelta
SignatureDelta
Incremental signature for a thinking block (sent at the end).
CitationsDelta
Incremental citation attached to a text block.
Trait Implementations§
Source§impl Clone for AnthropicDelta
impl Clone for AnthropicDelta
Source§fn clone(&self) -> AnthropicDelta
fn clone(&self) -> AnthropicDelta
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 AnthropicDelta
impl Debug for AnthropicDelta
Source§impl<'de> Deserialize<'de> for AnthropicDelta
impl<'de> Deserialize<'de> for AnthropicDelta
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 AnthropicDelta
impl RefUnwindSafe for AnthropicDelta
impl Send for AnthropicDelta
impl Sync for AnthropicDelta
impl Unpin for AnthropicDelta
impl UnsafeUnpin for AnthropicDelta
impl UnwindSafe for AnthropicDelta
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