Struct clust::messages::ImageContentSource  
source · pub struct ImageContentSource {
    pub _type: ImageSourceType,
    pub media_type: ImageMediaType,
    pub data: String,
}Expand description
The image content source.
Fields§
§_type: ImageSourceTypeThe source type.
media_type: ImageMediaTypeThe media type.
data: StringThe data of the image.
Trait Implementations§
source§impl Clone for ImageContentSource
 
impl Clone for ImageContentSource
source§fn clone(&self) -> ImageContentSource
 
fn clone(&self) -> ImageContentSource
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 ImageContentSource
 
impl Debug for ImageContentSource
source§impl Default for ImageContentSource
 
impl Default for ImageContentSource
source§impl<'de> Deserialize<'de> for ImageContentSource
 
impl<'de> Deserialize<'de> for ImageContentSource
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
source§impl Display for ImageContentSource
 
impl Display for ImageContentSource
source§impl PartialEq for ImageContentSource
 
impl PartialEq for ImageContentSource
source§fn eq(&self, other: &ImageContentSource) -> bool
 
fn eq(&self, other: &ImageContentSource) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for ImageContentSource
 
impl Serialize for ImageContentSource
impl StructuralPartialEq for ImageContentSource
Auto Trait Implementations§
impl Freeze for ImageContentSource
impl RefUnwindSafe for ImageContentSource
impl Send for ImageContentSource
impl Sync for ImageContentSource
impl Unpin for ImageContentSource
impl UnwindSafe for ImageContentSource
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