Struct telegram_bot_fork_raw::requests::send_audio::SendAudio
source · pub struct SendAudio<'s, 'c, 'p, 't> { /* private fields */ }
Expand description
Use this method to send an audio
Implementations
sourceimpl<'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) -> Selfwhere
C: ToChatRef,
T: Into<Cow<'s, str>>,
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 Selfwhere
T: Into<Cow<'p, str>>,
pub fn title<T>(&mut self, title: T) -> &mut Selfwhere
T: Into<Cow<'t, str>>,
pub fn reply_to<R>(&mut self, to: R) -> &mut Selfwhere
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut Selfwhere
R: Into<ReplyMarkup>,
Trait Implementations
sourceimpl<'s, 'c, 'p, 't> PartialEq<SendAudio<'s, 'c, 'p, 't>> for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> PartialEq<SendAudio<'s, 'c, 'p, 't>> for SendAudio<'s, 'c, 'p, 't>
sourceimpl<'s, 'c, 'p, 't> PartialOrd<SendAudio<'s, 'c, 'p, 't>> for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> PartialOrd<SendAudio<'s, 'c, 'p, 't>> for SendAudio<'s, 'c, 'p, 't>
sourcefn partial_cmp(&self, other: &SendAudio<'s, 'c, 'p, 't>) -> Option<Ordering>
fn partial_cmp(&self, other: &SendAudio<'s, 'c, 'p, 't>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<'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> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more