#[non_exhaustive]pub enum ContentBlockStart {
ToolUse {
tool_use: ToolUseBlockStart,
rest: Rest,
},
ToolResult {
tool_result: ToolResultBlockStart,
rest: Rest,
},
ReasoningContent {
reasoning_content: EmptyObject,
rest: Rest,
},
Image {
image: ImageBlockStart,
rest: Rest,
},
Raw(Value),
}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.
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<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
Source§impl PartialEq for ContentBlockStart
impl PartialEq for ContentBlockStart
Source§impl Serialize for ContentBlockStart
impl Serialize for ContentBlockStart
impl StructuralPartialEq for ContentBlockStart
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