pub enum ContentBlock {
TextContent(TextContent),
ImageContent(ImageContent),
AudioContent(AudioContent),
ResourceLink(ResourceLink),
EmbeddedResource(EmbeddedResource),
}Variants§
TextContent(TextContent)
The TextContent variant.
ImageContent(ImageContent)
The ImageContent variant.
AudioContent(AudioContent)
The AudioContent variant.
ResourceLink(ResourceLink)
The ResourceLink variant.
EmbeddedResource(EmbeddedResource)
The EmbeddedResource variant.
Trait Implementations§
Source§impl Clone for ContentBlock
impl Clone for ContentBlock
Source§fn clone(&self) -> ContentBlock
fn clone(&self) -> ContentBlock
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 ContentBlock
impl Debug for ContentBlock
Source§impl<'de> Deserialize<'de> for ContentBlock
impl<'de> Deserialize<'de> for ContentBlock
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ContentBlock, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ContentBlock, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AudioContent> for ContentBlock
impl From<AudioContent> for ContentBlock
Source§fn from(v: AudioContent) -> ContentBlock
fn from(v: AudioContent) -> ContentBlock
Converts to this type from the input type.
Source§impl From<EmbeddedResource> for ContentBlock
impl From<EmbeddedResource> for ContentBlock
Source§fn from(v: EmbeddedResource) -> ContentBlock
fn from(v: EmbeddedResource) -> ContentBlock
Converts to this type from the input type.
Source§impl From<ImageContent> for ContentBlock
impl From<ImageContent> for ContentBlock
Source§fn from(v: ImageContent) -> ContentBlock
fn from(v: ImageContent) -> ContentBlock
Converts to this type from the input type.
Source§impl From<ResourceLink> for ContentBlock
impl From<ResourceLink> for ContentBlock
Source§fn from(v: ResourceLink) -> ContentBlock
fn from(v: ResourceLink) -> ContentBlock
Converts to this type from the input type.
Source§impl From<TextContent> for ContentBlock
impl From<TextContent> for ContentBlock
Source§fn from(v: TextContent) -> ContentBlock
fn from(v: TextContent) -> ContentBlock
Converts to this type from the input type.
Source§impl IntoContent for ContentBlock
impl IntoContent for ContentBlock
Source§fn into_content(self) -> ContentBlock
fn into_content(self) -> ContentBlock
Performs the conversion.
Source§impl IntoToolResult for ContentBlock
impl IntoToolResult for ContentBlock
Source§fn into_tool_result(self) -> ToolResult
fn into_tool_result(self) -> ToolResult
Performs the conversion.
Source§impl PartialEq for ContentBlock
impl PartialEq for ContentBlock
Source§impl Serialize for ContentBlock
impl Serialize for ContentBlock
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ContentBlock
Auto Trait Implementations§
impl Freeze for ContentBlock
impl RefUnwindSafe for ContentBlock
impl Send for ContentBlock
impl Sync for ContentBlock
impl Unpin for ContentBlock
impl UnsafeUnpin for ContentBlock
impl UnwindSafe for ContentBlock
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