pub struct SendOptions<'a> {
pub recipient: &'a str,
pub content: &'a str,
pub reply_to: Option<&'a str>,
pub silent: bool,
pub media: Option<&'a str>,
}Expand description
Options for sending a message
Fields§
§recipient: &'a str§content: &'a str§reply_to: Option<&'a str>§silent: bool§media: Option<&'a str>Trait Implementations§
Source§impl<'a> Debug for SendOptions<'a>
impl<'a> Debug for SendOptions<'a>
Source§impl<'a> Default for SendOptions<'a>
impl<'a> Default for SendOptions<'a>
Source§fn default() -> SendOptions<'a>
fn default() -> SendOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for SendOptions<'a>
impl<'a> RefUnwindSafe for SendOptions<'a>
impl<'a> Send for SendOptions<'a>
impl<'a> Sync for SendOptions<'a>
impl<'a> Unpin for SendOptions<'a>
impl<'a> UnsafeUnpin for SendOptions<'a>
impl<'a> UnwindSafe for SendOptions<'a>
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