pub struct EncodedImage {
pub data: String,
pub mime_type: String,
pub structured: Value,
}Available on crate feature
mcp and non-WebAssembly only.Expand description
An image the transport sends as an image content block.
Fields§
§data: StringThe encoded bytes, base64-encoded.
mime_type: StringThe format the bytes are in, as a MIME type.
structured: ValueThe image’s metadata — its size — as structured JSON.
Auto Trait Implementations§
impl Forget for EncodedImage
impl Freeze for EncodedImage
impl RefUnwindSafe for EncodedImage
impl Send for EncodedImage
impl Sync for EncodedImage
impl Unpin for EncodedImage
impl UnsafeUnpin for EncodedImage
impl UnwindSafe for EncodedImage
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