pub struct ImageContent {
pub data: String,
pub mime_type: String,
pub annotations: Option<Annotations>,
pub extensions: Extensions,
}Expand description
{"type": "image", "data": "...", "mimeType": "..."}.
Fields§
§data: StringBase64 payload.
mime_type: StringThe media type.
annotations: Option<Annotations>Optional annotations, 2025-03-26.
extensions: ExtensionsUnmodelled fields.
Implementations§
Source§impl ImageContent
impl ImageContent
Sourcepub const fn required_features(&self) -> FeatureSet
pub const fn required_features(&self) -> FeatureSet
What this block needs, over and above being an image at all.
Trait Implementations§
Source§impl Clone for ImageContent
impl Clone for ImageContent
Source§impl Debug for ImageContent
impl Debug for ImageContent
Source§impl PartialEq for ImageContent
impl PartialEq for ImageContent
impl StructuralPartialEq for ImageContent
Auto Trait Implementations§
impl Freeze for ImageContent
impl RefUnwindSafe for ImageContent
impl Send for ImageContent
impl Sync for ImageContent
impl Unpin for ImageContent
impl UnsafeUnpin for ImageContent
impl UnwindSafe for ImageContent
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