[−][src]Struct pocketcasts::Pocketcasts
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]
email: String,
password: String
) -> Result<Pocketcasts, Error>
Login using email and password, returning an authenticated client.
pub async fn subscription_status<'_>(
&'_ self
) -> Result<SubscriptionStatus, Error>
[src]
&'_ self
) -> Result<SubscriptionStatus, Error>
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]
fn clone(&self) -> Pocketcasts
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Pocketcasts
[src]
Auto Trait Implementations
impl Send for Pocketcasts
impl Sync for Pocketcasts
impl Unpin for Pocketcasts
impl UnwindSafe for Pocketcasts
impl RefUnwindSafe for Pocketcasts
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,