pub struct SendInboxMessageRequestInteractiveHeader {
pub type: Option<Type>,
pub text: Option<String>,
pub image: Option<Box<SendInboxMessageRequestInteractiveHeaderImage>>,
pub video: Option<Box<SendInboxMessageRequestInteractiveHeaderImage>>,
pub document: Option<Box<SendInboxMessageRequestInteractiveHeaderImage>>,
}Expand description
SendInboxMessageRequestInteractiveHeader : Optional header shown above the body.
Fields§
§type: Option<Type>§text: Option<String>Required when header type is text.
image: Option<Box<SendInboxMessageRequestInteractiveHeaderImage>>§video: Option<Box<SendInboxMessageRequestInteractiveHeaderImage>>§document: Option<Box<SendInboxMessageRequestInteractiveHeaderImage>>Implementations§
Source§impl SendInboxMessageRequestInteractiveHeader
impl SendInboxMessageRequestInteractiveHeader
Sourcepub fn new() -> SendInboxMessageRequestInteractiveHeader
pub fn new() -> SendInboxMessageRequestInteractiveHeader
Optional header shown above the body.
Trait Implementations§
Source§impl Clone for SendInboxMessageRequestInteractiveHeader
impl Clone for SendInboxMessageRequestInteractiveHeader
Source§fn clone(&self) -> SendInboxMessageRequestInteractiveHeader
fn clone(&self) -> SendInboxMessageRequestInteractiveHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SendInboxMessageRequestInteractiveHeader
impl Default for SendInboxMessageRequestInteractiveHeader
Source§fn default() -> SendInboxMessageRequestInteractiveHeader
fn default() -> SendInboxMessageRequestInteractiveHeader
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SendInboxMessageRequestInteractiveHeader
impl<'de> Deserialize<'de> for SendInboxMessageRequestInteractiveHeader
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 SendInboxMessageRequestInteractiveHeader
impl PartialEq for SendInboxMessageRequestInteractiveHeader
Source§fn eq(&self, other: &SendInboxMessageRequestInteractiveHeader) -> bool
fn eq(&self, other: &SendInboxMessageRequestInteractiveHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SendInboxMessageRequestInteractiveHeader
Auto Trait Implementations§
impl Freeze for SendInboxMessageRequestInteractiveHeader
impl RefUnwindSafe for SendInboxMessageRequestInteractiveHeader
impl Send for SendInboxMessageRequestInteractiveHeader
impl Sync for SendInboxMessageRequestInteractiveHeader
impl Unpin for SendInboxMessageRequestInteractiveHeader
impl UnsafeUnpin for SendInboxMessageRequestInteractiveHeader
impl UnwindSafe for SendInboxMessageRequestInteractiveHeader
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