Struct lastfm_rs::RequestBuilder[][src]

pub struct RequestBuilder<'a, T: 'a> { /* fields omitted */ }

The Request Builder.

This is the main request builder, used for constructing any and all requests to the Last.fm API.

  • client - An instance of the Last.fm API client.
  • url - The Last.fm API endpoint URL to feed to the request builder.
  • phantom - An unused parameter, only used to satisfy the type checker.

Implementations

impl<'a> RequestBuilder<'a, LovedTracks>[src]

pub fn with_limit(&'a mut self, v: usize) -> &'a mut Self[src]

pub fn with_page(&'a mut self, v: usize) -> &'a mut Self[src]

pub async fn send(&'a mut self) -> Result<LovedTracks, Error>[src]

impl<'a> RequestBuilder<'a, RecentTracks>[src]

pub fn with_limit(&'a mut self, v: usize) -> &'a mut Self[src]

pub fn with_page(&'a mut self, v: usize) -> &'a mut Self[src]

pub async fn send(&'a mut self) -> Result<RecentTracks, Error>[src]

impl<'a> RequestBuilder<'a, TopArtists>[src]

pub fn with_limit(&'a mut self, v: usize) -> &'a mut Self[src]

pub fn within_period(&'a mut self, v: Period) -> &'a mut Self[src]

pub fn with_page(&'a mut self, v: usize) -> &'a mut Self[src]

pub async fn send(&'a mut self) -> Result<TopArtists, Error>[src]

impl<'a> RequestBuilder<'a, UserInfo>[src]

pub async fn send(&'a mut self) -> Result<UserInfo, Error>[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for RequestBuilder<'a, T>

impl<'a, T> Send for RequestBuilder<'a, T> where
    T: Sync

impl<'a, T> Sync for RequestBuilder<'a, T> where
    T: Sync

impl<'a, T> Unpin for RequestBuilder<'a, T>

impl<'a, T> !UnwindSafe for RequestBuilder<'a, T>

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<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

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.