pub struct ImagePartDelta {
    pub mime_type: Option<String>,
    pub data: Option<String>,
    pub width: Option<u32>,
    pub height: Option<u32>,
    pub id: Option<String>,
}Expand description
A delta update for an image part, used in streaming of an image message.
Fields§
§mime_type: Option<String>The MIME type of the image. E.g. “image/jpeg”, “image/png”.
data: Option<String>The 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 Clone for ImagePartDelta
 
impl Clone for ImagePartDelta
Source§fn clone(&self) -> ImagePartDelta
 
fn clone(&self) -> ImagePartDelta
Returns a duplicate 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 ImagePartDelta
 
impl Debug for ImagePartDelta
Source§impl Default for ImagePartDelta
 
impl Default for ImagePartDelta
Source§fn default() -> ImagePartDelta
 
fn default() -> ImagePartDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImagePartDelta
 
impl<'de> Deserialize<'de> for ImagePartDelta
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 PartialEq for ImagePartDelta
 
impl PartialEq for ImagePartDelta
Source§impl Serialize for ImagePartDelta
 
impl Serialize for ImagePartDelta
impl StructuralPartialEq for ImagePartDelta
Auto Trait Implementations§
impl Freeze for ImagePartDelta
impl RefUnwindSafe for ImagePartDelta
impl Send for ImagePartDelta
impl Sync for ImagePartDelta
impl Unpin for ImagePartDelta
impl UnwindSafe for ImagePartDelta
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