pub struct ImagePayload {
pub payload_type: String,
pub data_base64: String,
pub mime_type: String,
pub width: Option<u32>,
pub height: Option<u32>,
pub source_model: Option<String>,
pub caption: Option<String>,
}Expand description
Image data payload.
Fields§
§payload_type: String§data_base64: String§mime_type: String§width: Option<u32>§height: Option<u32>§source_model: Option<String>§caption: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ImagePayload
impl Clone for ImagePayload
Source§fn clone(&self) -> ImagePayload
fn clone(&self) -> ImagePayload
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 ImagePayload
impl Debug for ImagePayload
Source§impl<'de> Deserialize<'de> for ImagePayload
impl<'de> Deserialize<'de> for ImagePayload
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 ImagePayload
impl RefUnwindSafe for ImagePayload
impl Send for ImagePayload
impl Sync for ImagePayload
impl Unpin for ImagePayload
impl UnsafeUnpin for ImagePayload
impl UnwindSafe for ImagePayload
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