pub struct ImageMessageContent {
pub type: Option<String>,
pub id: String,
pub content_provider: Box<ContentProvider>,
pub image_set: Option<Box<ImageSet>>,
pub quote_token: String,
}Fields§
§type: Option<String>Type
id: StringMessage ID
content_provider: Box<ContentProvider>§image_set: Option<Box<ImageSet>>§quote_token: StringQuote token to quote this message.
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§fn clone(&self) -> ImageMessageContent
fn clone(&self) -> ImageMessageContent
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 ImageMessageContent
impl Debug for ImageMessageContent
Source§impl Default for ImageMessageContent
impl Default for ImageMessageContent
Source§fn default() -> ImageMessageContent
fn default() -> ImageMessageContent
Returns the “default value” for a type. Read more
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 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 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