pub struct ImagePart {
pub mime_type: String,
pub data: String,
pub width: Option<u32>,
pub height: Option<u32>,
pub id: Option<String>,
}Expand description
A part of the message that contains an image.
Fields§
§mime_type: StringThe MIME type of the image. E.g. “image/jpeg”, “image/png”.
data: StringThe base64-encoded image data.
width: Option<u32>The width of the image in pixels.
height: Option<u32>The height of the image in pixels.
id: Option<String>The ID of the image part, if applicable
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImagePart
impl<'de> Deserialize<'de> for ImagePart
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 StructuralPartialEq for ImagePart
Auto Trait Implementations§
impl Freeze for ImagePart
impl RefUnwindSafe for ImagePart
impl Send for ImagePart
impl Sync for ImagePart
impl Unpin for ImagePart
impl UnwindSafe for ImagePart
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