pub enum AssistantContentBlock {
Text {
text: String,
},
Thinking {
thinking: String,
signature: String,
},
RedactedThinking {
data: String,
},
ToolUse {
id: String,
name: String,
input: Value,
caller: Option<ToolUseCaller>,
},
Unknown,
}Variants§
Text
Thinking
Extended thinking block. thinking is always an empty string in
persisted transcripts (Claude Code redacts it for storage); the
cryptographic signature is retained.
RedactedThinking
ToolUse
Fields
§
caller: Option<ToolUseCaller>Present in some versions to identify call origin.
Unknown
Catch-all for content block types not yet recognised by the ingest binary.
Trait Implementations§
Source§impl Clone for AssistantContentBlock
impl Clone for AssistantContentBlock
Source§fn clone(&self) -> AssistantContentBlock
fn clone(&self) -> AssistantContentBlock
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 AssistantContentBlock
impl Debug for AssistantContentBlock
Source§impl<'de> Deserialize<'de> for AssistantContentBlock
impl<'de> Deserialize<'de> for AssistantContentBlock
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 AssistantContentBlock
impl RefUnwindSafe for AssistantContentBlock
impl Send for AssistantContentBlock
impl Sync for AssistantContentBlock
impl Unpin for AssistantContentBlock
impl UnsafeUnpin for AssistantContentBlock
impl UnwindSafe for AssistantContentBlock
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