pub enum ContentBlockStart {
Text {
text: String,
},
Thinking {
thinking: String,
},
ToolUse {
id: String,
name: String,
input: Value,
caller: Option<ToolCaller>,
},
ServerToolUse {
id: String,
name: String,
input: Value,
},
}Expand description
Content block types used in streaming starts.
Variants§
Trait Implementations§
Source§impl Clone for ContentBlockStart
impl Clone for ContentBlockStart
Source§fn clone(&self) -> ContentBlockStart
fn clone(&self) -> ContentBlockStart
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 ContentBlockStart
impl Debug for ContentBlockStart
Source§impl<'de> Deserialize<'de> for ContentBlockStart
impl<'de> Deserialize<'de> for ContentBlockStart
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentBlockStart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentBlockStart, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContentBlockStart
impl RefUnwindSafe for ContentBlockStart
impl Send for ContentBlockStart
impl Sync for ContentBlockStart
impl Unpin for ContentBlockStart
impl UnsafeUnpin for ContentBlockStart
impl UnwindSafe for ContentBlockStart
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