[][src]Struct tbot::types::inline_query::result::audio::Fresh

#[must_use]
pub struct Fresh<'a> { /* fields omitted */ }

Represents a non-cached audio.

Methods

impl<'a> Fresh<'a>[src]

pub const fn new(url: &'a str, title: &'a str) -> Self[src]

Constructs a Fresh audio.

pub fn performer(self, performer: &'a str) -> Self[src]

Configures the performer of the audio.

pub fn duration(self, duration: usize) -> Self[src]

Configures the duration of the audio.

Trait Implementations

impl<'a> Clone for Fresh<'a>[src]

impl<'a> Copy for Fresh<'a>[src]

impl<'a> Debug for Fresh<'a>[src]

impl<'a> Eq for Fresh<'a>[src]

impl<'a> Hash for Fresh<'a>[src]

impl<'a> PartialEq<Fresh<'a>> for Fresh<'a>[src]

impl<'a> Serialize for Fresh<'a>[src]

impl<'a> StructuralEq for Fresh<'a>[src]

impl<'a> StructuralPartialEq for Fresh<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Fresh<'a>

impl<'a> Send for Fresh<'a>

impl<'a> Sync for Fresh<'a>

impl<'a> Unpin for Fresh<'a>

impl<'a> UnwindSafe for Fresh<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.