pub enum SamplingMessageContent {
TextContent(TextContent),
ImageContent(ImageContent),
AudioContent(AudioContent),
}
Expand description
SamplingMessageContent
JSON schema
{
"anyOf": [
{
"$ref": "#/definitions/TextContent"
},
{
"$ref": "#/definitions/ImageContent"
},
{
"$ref": "#/definitions/AudioContent"
}
]
}
Variants§
Trait Implementations§
Source§impl Clone for SamplingMessageContent
impl Clone for SamplingMessageContent
Source§fn clone(&self) -> SamplingMessageContent
fn clone(&self) -> SamplingMessageContent
Returns a copy of the value. Read more
1.0.0 · 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 SamplingMessageContent
impl Debug for SamplingMessageContent
Source§impl<'de> Deserialize<'de> for SamplingMessageContent
impl<'de> Deserialize<'de> for SamplingMessageContent
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 From<AudioContent> for SamplingMessageContent
impl From<AudioContent> for SamplingMessageContent
Source§fn from(value: AudioContent) -> Self
fn from(value: AudioContent) -> Self
Converts to this type from the input type.
Source§impl From<ImageContent> for SamplingMessageContent
impl From<ImageContent> for SamplingMessageContent
Source§fn from(value: ImageContent) -> Self
fn from(value: ImageContent) -> Self
Converts to this type from the input type.
Source§impl From<TextContent> for SamplingMessageContent
impl From<TextContent> for SamplingMessageContent
Source§fn from(value: TextContent) -> Self
fn from(value: TextContent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SamplingMessageContent
impl RefUnwindSafe for SamplingMessageContent
impl Send for SamplingMessageContent
impl Sync for SamplingMessageContent
impl Unpin for SamplingMessageContent
impl UnwindSafe for SamplingMessageContent
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