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<T>(chat: i64, url: T) -> Self
pub fn caption<T>(&mut self, caption: T) -> &mut Self
pub fn parse_mode(&mut self, parse_mode: ParseMode) -> &mut Self
pub fn duration(&mut self, duration: i64) -> &mut Self
pub fn performer<T>(&mut self, performer: T) -> &mut Self
pub fn title<T>(&mut self, title: T) -> &mut Self
pub fn reply_to(&mut self, to: i64) -> &mut Self
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut 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>
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> UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more