pub enum Unstructured {
Text {
text: String,
},
Image {
data: Base64,
mime_type: String,
},
Audio {
data: Base64,
mime_type: String,
},
ResourceLink {
uri: String,
name: String,
description: String,
mime_type: String,
},
Resource {
uri: String,
title: String,
mime_type: String,
text: String,
},
}
Variants§
Trait Implementations§
Source§impl Clone for Unstructured
impl Clone for Unstructured
Source§fn clone(&self) -> Unstructured
fn clone(&self) -> Unstructured
Returns a duplicate 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 Unstructured
impl Debug for Unstructured
Source§impl<'de> Deserialize<'de> for Unstructured
impl<'de> Deserialize<'de> for Unstructured
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<T> From<Unstructured> for Content<T>
impl<T> From<Unstructured> for Content<T>
Source§fn from(content: Unstructured) -> Self
fn from(content: Unstructured) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Unstructured
impl RefUnwindSafe for Unstructured
impl Send for Unstructured
impl Sync for Unstructured
impl Unpin for Unstructured
impl UnwindSafe for Unstructured
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