[][src]Struct pandora_rs2::auth::Credentials

pub struct Credentials { /* fields omitted */ }

Methods

impl Credentials[src]

pub fn new(username: &str, password: &str) -> Result<Self>[src]

pub fn refresh(&mut self) -> Result<()>[src]

pub fn username(&self) -> &str[src]

pub fn password(&self) -> &str[src]

pub fn encrypt_key(&self) -> &str[src]

pub fn decrypt_key(&self) -> &str[src]

pub fn partner_id<'a>(&'a self) -> Option<&'a str>[src]

pub fn partner_auth_token<'a>(&'a self) -> Option<&'a str>[src]

pub fn sync_time<'a>(&'a self) -> Option<&'a u64>[src]

pub fn user_id<'a>(&'a self) -> Option<&'a str>[src]

pub fn user_auth_token<'a>(&'a self) -> Option<&'a str>[src]

Trait Implementations

impl Debug for Credentials[src]

Auto Trait Implementations

impl Send for Credentials

impl Sync for Credentials

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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