pub struct SendAudio<'s, 'c, 'p, 't> { /* private fields */ }
Expand description
Use this method to send an audio
Implementations§
Source§impl<'s, 'c, 'p, 't> SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> SendAudio<'s, 'c, 'p, 't>
pub fn with_url<C, T>(chat: C, url: T) -> Self
pub fn caption<T>(self, caption: T) -> Self
pub fn parse_mode(self, parse_mode: ParseMode) -> Self
pub fn duration(self, duration: i64) -> Self
pub fn performer<T>(self, performer: T) -> Self
pub fn title<T>(self, title: T) -> Self
pub fn reply_to<R>(self, to: R) -> Selfwhere
R: ToMessageId,
pub fn reply_markup<R>(self, reply_markup: R) -> Selfwhere
R: Into<ReplyMarkup>,
Trait Implementations§
Source§impl<'s, 'c, 'p, 't> PartialOrd for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> PartialOrd for SendAudio<'s, 'c, 'p, 't>
Source§impl<'s, 'c, 'p, 't> Request for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> Request for SendAudio<'s, 'c, 'p, 't>
type Type = JsonRequestType<SendAudio<'s, 'c, 'p, 't>>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
impl<'s, 'c, 'p, 't> StructuralPartialEq for SendAudio<'s, 'c, 'p, 't>
Auto Trait Implementations§
impl<'s, 'c, 'p, 't> Freeze for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> RefUnwindSafe for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> Send for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> Sync for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> Unpin for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> UnwindSafe for SendAudio<'s, 'c, 'p, 't>
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