pub struct Image {
pub data: Vec<u8>,
pub mime_type: String,
pub description: Option<String>,
}Expand description
Image content attachment primitive.
Binary image data with MIME type, mirroring google.antigravity.types.Image.
Fields§
§data: Vec<u8>Raw image bytes (e.g. PNG, JPEG).
mime_type: StringMIME type of the image (e.g. "image/png").
description: Option<String>Optional text description of the image.
Implementations§
Source§impl Image
impl Image
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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 Eq for Image
Source§impl MediaContent for Image
impl MediaContent for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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