pub enum Content {
Text {
text: String,
annotations: Option<Annotations>,
},
Image {
data: String,
mime_type: String,
annotations: Option<Annotations>,
},
Audio {
data: String,
mime_type: String,
annotations: Option<Annotations>,
},
Resource {
resource: ResourceReference,
annotations: Option<Annotations>,
},
}
Expand description
Unified content type (2025-03-26 complete)
Variantsยง
Text
Text content
Fields
ยง
annotations: Option<Annotations>
Content annotations (2025-03-26)
Image
Image content
Fields
ยง
annotations: Option<Annotations>
Content annotations (2025-03-26)
Audio
Audio content (2025-03-26 NEW)
Fields
ยง
annotations: Option<Annotations>
Content annotations (2025-03-26)
Resource
Embedded resource content (2025-03-26 NEW)
Fields
ยง
resource: ResourceReference
Resource reference
ยง
annotations: Option<Annotations>
Content annotations (2025-03-26)
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<'de> Deserialize<'de> for Content
impl<'de> Deserialize<'de> for Content
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 StructuralPartialEq for Content
Auto Trait Implementationsยง
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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