pub enum ImageAttachment {
Url {
url: String,
detail: Option<ImageDetail>,
},
Base64 {
data: String,
media_type: Option<String>,
detail: Option<ImageDetail>,
},
}Variants§
Trait Implementations§
Source§impl Clone for ImageAttachment
impl Clone for ImageAttachment
Source§fn clone(&self) -> ImageAttachment
fn clone(&self) -> ImageAttachment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageAttachment
impl Debug for ImageAttachment
Source§impl<'de> Deserialize<'de> for ImageAttachment
impl<'de> Deserialize<'de> for ImageAttachment
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
Auto Trait Implementations§
impl Freeze for ImageAttachment
impl RefUnwindSafe for ImageAttachment
impl Send for ImageAttachment
impl Sync for ImageAttachment
impl Unpin for ImageAttachment
impl UnsafeUnpin for ImageAttachment
impl UnwindSafe for ImageAttachment
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