pub struct ContentBlockWrapper {
pub content: ContentBlock,
}Expand description
A wrapper around a ContentBlock for the
content variant of ToolCallContent.
The schema’s Content type is a single-key
object { "content": <ContentBlock> }; the
wrapper keeps the typed form aligned with that
shape.
Fields§
§content: ContentBlockThe actual content block.
Trait Implementations§
Source§impl Clone for ContentBlockWrapper
impl Clone for ContentBlockWrapper
Source§impl Debug for ContentBlockWrapper
impl Debug for ContentBlockWrapper
Source§impl<'de> Deserialize<'de> for ContentBlockWrapper
impl<'de> Deserialize<'de> for ContentBlockWrapper
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
impl Eq for ContentBlockWrapper
Source§impl PartialEq for ContentBlockWrapper
impl PartialEq for ContentBlockWrapper
Source§impl Serialize for ContentBlockWrapper
impl Serialize for ContentBlockWrapper
impl StructuralPartialEq for ContentBlockWrapper
Auto Trait Implementations§
impl Freeze for ContentBlockWrapper
impl RefUnwindSafe for ContentBlockWrapper
impl Send for ContentBlockWrapper
impl Sync for ContentBlockWrapper
impl Unpin for ContentBlockWrapper
impl UnsafeUnpin for ContentBlockWrapper
impl UnwindSafe for ContentBlockWrapper
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