pub struct TelegramPlatformData {
pub parse_mode: Option<ParseMode>,
pub disable_web_page_preview: Option<bool>,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
}Expand description
TelegramPlatformData : Text, images (up to 10), videos (up to 10), and mixed media albums. Captions up to 1024 chars for media, 4096 for text-only.
Fields§
§parse_mode: Option<ParseMode>Text formatting mode for the message (default is HTML)
disable_web_page_preview: Option<bool>Disable link preview generation for URLs in the message
disable_notification: Option<bool>Send the message silently (users will receive notification without sound)
protect_content: Option<bool>Protect message content from forwarding and saving
Implementations§
Source§impl TelegramPlatformData
impl TelegramPlatformData
Sourcepub fn new() -> TelegramPlatformData
pub fn new() -> TelegramPlatformData
Text, images (up to 10), videos (up to 10), and mixed media albums. Captions up to 1024 chars for media, 4096 for text-only.
Trait Implementations§
Source§impl Clone for TelegramPlatformData
impl Clone for TelegramPlatformData
Source§fn clone(&self) -> TelegramPlatformData
fn clone(&self) -> TelegramPlatformData
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 Debug for TelegramPlatformData
impl Debug for TelegramPlatformData
Source§impl Default for TelegramPlatformData
impl Default for TelegramPlatformData
Source§fn default() -> TelegramPlatformData
fn default() -> TelegramPlatformData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelegramPlatformData
impl<'de> Deserialize<'de> for TelegramPlatformData
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 TelegramPlatformData
impl PartialEq for TelegramPlatformData
Source§fn eq(&self, other: &TelegramPlatformData) -> bool
fn eq(&self, other: &TelegramPlatformData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TelegramPlatformData
impl Serialize for TelegramPlatformData
impl StructuralPartialEq for TelegramPlatformData
Auto Trait Implementations§
impl Freeze for TelegramPlatformData
impl RefUnwindSafe for TelegramPlatformData
impl Send for TelegramPlatformData
impl Sync for TelegramPlatformData
impl Unpin for TelegramPlatformData
impl UnsafeUnpin for TelegramPlatformData
impl UnwindSafe for TelegramPlatformData
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