pub enum RawContentBlock {
Text {
text: Option<String>,
},
ToolUse {
id: String,
name: String,
input: Option<Value>,
},
Thinking {
thinking: Option<String>,
signature: Option<String>,
},
}Expand description
Raw content block from content_block_start (text, tool_use, or thinking).
Variants§
Trait Implementations§
Source§impl Debug for RawContentBlock
impl Debug for RawContentBlock
Source§impl<'de> Deserialize<'de> for RawContentBlock
impl<'de> Deserialize<'de> for RawContentBlock
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 RawContentBlock
impl RefUnwindSafe for RawContentBlock
impl Send for RawContentBlock
impl Sync for RawContentBlock
impl Unpin for RawContentBlock
impl UnsafeUnpin for RawContentBlock
impl UnwindSafe for RawContentBlock
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