[][src]Struct pocketcasts::Pocketcasts

pub struct Pocketcasts {
    pub access_token: String,
}

The authenticated pocketcasts client.

Fields

access_token: String

Methods

impl Pocketcasts[src]

pub fn new(access_token: String) -> Self[src]

Create new client with the given access token.

pub async fn login(
    email: String,
    password: String
) -> Result<Pocketcasts, Error>
[src]

Login using email and password, returning an authenticated client.

pub async fn subscription_status<'_>(
    &'_ self
) -> Result<SubscriptionStatus, Error>
[src]

Get the user's subscription status.

pub async fn user_podcasts<'_>(&'_ self) -> Result<UserPodcasts, Error>[src]

Get the user's subscribed podcasts.

pub async fn new_releases<'_>(&'_ self) -> Result<NewReleases, Error>[src]

Get the user's new releases.

pub async fn episode<'_>(&'_ self, uuid: String) -> Result<Episode, Error>[src]

Return episode with the specified uuid.

Trait Implementations

impl Clone for Pocketcasts[src]

impl Debug for Pocketcasts[src]

Auto Trait Implementations

Blanket Implementations

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 = !

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.

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

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

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