pub struct SendOptions {
pub disable_notification: bool,
pub protect_content: bool,
pub disable_link_preview: Option<bool>,
pub message_thread_id: Option<i64>,
pub reply_to_message_id: Option<i64>,
}Expand description
Optional per-send parameters.
Fields§
§disable_notification: boolDeliver silently, without a notification sound.
protect_content: boolPrevent forwarding and saving.
disable_link_preview: Option<bool>Whether to suppress link preview cards. None leaves Telegram’s default.
message_thread_id: Option<i64>Target a specific topic within a forum chat.
reply_to_message_id: Option<i64>Send as a reply to an existing message.
Trait Implementations§
Source§impl Clone for SendOptions
impl Clone for SendOptions
Source§fn clone(&self) -> SendOptions
fn clone(&self) -> SendOptions
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 SendOptions
impl Debug for SendOptions
Source§impl Default for SendOptions
impl Default for SendOptions
Source§fn default() -> SendOptions
fn default() -> SendOptions
Returns the “default value” for a type. Read more
impl Eq for SendOptions
Source§impl PartialEq for SendOptions
impl PartialEq for SendOptions
impl StructuralPartialEq for SendOptions
Auto Trait Implementations§
impl Freeze for SendOptions
impl RefUnwindSafe for SendOptions
impl Send for SendOptions
impl Sync for SendOptions
impl Unpin for SendOptions
impl UnsafeUnpin for SendOptions
impl UnwindSafe for SendOptions
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