pub struct ImageSource {
pub source_type: String,
pub media_type: String,
pub data: String,
}Expand description
Source of an image content block.
Currently, images must be provided as base64-encoded data.
Fields§
§source_type: StringThe type of image source (currently only “base64” is supported)
media_type: StringThe MIME type of the image (e.g., “image/png”, “image/jpeg”)
data: StringThe base64-encoded image data
Trait Implementations§
Source§impl Clone for ImageSource
impl Clone for ImageSource
Source§fn clone(&self) -> ImageSource
fn clone(&self) -> ImageSource
Returns a copy 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 ImageSource
impl Debug for ImageSource
Source§impl PartialEq for ImageSource
impl PartialEq for ImageSource
Source§impl Serialize for ImageSource
impl Serialize for ImageSource
impl Eq for ImageSource
impl StructuralPartialEq for ImageSource
Auto Trait Implementations§
impl Freeze for ImageSource
impl RefUnwindSafe for ImageSource
impl Send for ImageSource
impl Sync for ImageSource
impl Unpin for ImageSource
impl UnwindSafe for ImageSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.