pub struct ImageMessageContent {
pub type: String,
pub id: String,
pub content_provider: Box<ContentProvider>,
pub image_set: Option<Box<ImageSet>>,
pub quote_token: String,
pub mark_as_read_token: Option<String>,
}Fields§
§type: StringType
id: StringMessage ID
content_provider: Box<ContentProvider>§image_set: Option<Box<ImageSet>>§quote_token: StringQuote token to quote this message.
mark_as_read_token: Option<String>Token used to mark the message as read.
Implementations§
Source§impl ImageMessageContent
impl ImageMessageContent
pub fn new( type: String, id: String, content_provider: ContentProvider, quote_token: String, ) -> ImageMessageContent
Trait Implementations§
Source§impl Clone for ImageMessageContent
impl Clone for ImageMessageContent
Source§impl Debug for ImageMessageContent
impl Debug for ImageMessageContent
Source§impl Default for ImageMessageContent
impl Default for ImageMessageContent
Source§impl<'de> Deserialize<'de> for ImageMessageContent
impl<'de> Deserialize<'de> for ImageMessageContent
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 From<ImageMessageContent> for MessageContent
impl From<ImageMessageContent> for MessageContent
Source§fn from(value: ImageMessageContent) -> Self
fn from(value: ImageMessageContent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImageMessageContent
impl PartialEq for ImageMessageContent
Source§impl Serialize for ImageMessageContent
impl Serialize for ImageMessageContent
impl StructuralPartialEq for ImageMessageContent
Auto Trait Implementations§
impl Freeze for ImageMessageContent
impl RefUnwindSafe for ImageMessageContent
impl Send for ImageMessageContent
impl Sync for ImageMessageContent
impl Unpin for ImageMessageContent
impl UnsafeUnpin for ImageMessageContent
impl UnwindSafe for ImageMessageContent
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