#[non_exhaustive]pub enum ResponseContentBlock {
Show 18 variants
Text(ResponseTextBlock),
Thinking(ThinkingBlock),
RedactedThinking(RedactedThinkingBlock),
ToolUse(ResponseToolUseBlock),
ServerToolUse(ResponseServerToolUseBlock),
WebSearchToolResult(ResponseWebSearchToolResultBlock),
WebFetchToolResult(ResponseWebFetchToolResultBlock),
AdvisorToolResult(ResponseAdvisorToolResultBlock),
CodeExecutionToolResult(ResponseCodeExecutionToolResultBlock),
BashCodeExecutionToolResult(ResponseBashCodeExecutionToolResultBlock),
TextEditorCodeExecutionToolResult(ResponseTextEditorCodeExecutionToolResultBlock),
ToolSearchToolResult(ResponseToolSearchToolResultBlock),
McpToolUse(ResponseMcpToolUseBlock),
McpToolResult(ResponseMcpToolResultBlock),
ContainerUpload(ResponseContainerUploadBlock),
Compaction(ResponseCompactionBlock),
Fallback(FallbackBlock),
Raw(TypedObject),
}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(ResponseTextBlock)
Thinking(ThinkingBlock)
RedactedThinking(RedactedThinkingBlock)
ToolUse(ResponseToolUseBlock)
ServerToolUse(ResponseServerToolUseBlock)
WebSearchToolResult(ResponseWebSearchToolResultBlock)
WebFetchToolResult(ResponseWebFetchToolResultBlock)
AdvisorToolResult(ResponseAdvisorToolResultBlock)
CodeExecutionToolResult(ResponseCodeExecutionToolResultBlock)
BashCodeExecutionToolResult(ResponseBashCodeExecutionToolResultBlock)
TextEditorCodeExecutionToolResult(ResponseTextEditorCodeExecutionToolResultBlock)
ToolSearchToolResult(ResponseToolSearchToolResultBlock)
McpToolUse(ResponseMcpToolUseBlock)
McpToolResult(ResponseMcpToolResultBlock)
ContainerUpload(ResponseContainerUploadBlock)
Compaction(ResponseCompactionBlock)
Fallback(FallbackBlock)
Raw(TypedObject)
Trait Implementations§
Source§impl Clone for ResponseContentBlock
impl Clone for ResponseContentBlock
Source§fn clone(&self) -> ResponseContentBlock
fn clone(&self) -> ResponseContentBlock
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 ResponseContentBlock
impl Debug for ResponseContentBlock
Source§impl<'de> Deserialize<'de> for ResponseContentBlock
impl<'de> Deserialize<'de> for ResponseContentBlock
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResponseContentBlock
impl PartialEq for ResponseContentBlock
Source§impl Serialize for ResponseContentBlock
impl Serialize for ResponseContentBlock
impl StructuralPartialEq for ResponseContentBlock
Auto Trait Implementations§
impl Freeze for ResponseContentBlock
impl RefUnwindSafe for ResponseContentBlock
impl Send for ResponseContentBlock
impl Sync for ResponseContentBlock
impl Unpin for ResponseContentBlock
impl UnsafeUnpin for ResponseContentBlock
impl UnwindSafe for ResponseContentBlock
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