Struct librespot_core::authentication::Credentials [−][src]
pub struct Credentials {
pub username: String,
pub auth_type: AuthenticationType,
pub auth_data: Vec<u8>,
}The credentials are used to log into the Spotify API.
Fields
username: Stringauth_type: AuthenticationTypeauth_data: Vec<u8>Implementations
impl Credentials[src]
impl Credentials[src]pub fn with_password(
username: impl Into<String>,
password: impl Into<String>
) -> Credentials[src]
username: impl Into<String>,
password: impl Into<String>
) -> Credentials
Intialize these credentials from a username and a password.
Example
use librespot_core::authentication::Credentials; let creds = Credentials::with_password("my account", "my password");
pub fn with_blob(
username: String,
encrypted_blob: &str,
device_id: &str
) -> Credentials[src]
username: String,
encrypted_blob: &str,
device_id: &str
) -> Credentials
Trait Implementations
impl Clone for Credentials[src]
impl Clone for Credentials[src]fn clone(&self) -> Credentials[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'de> Deserialize<'de> for Credentials[src]
impl<'de> Deserialize<'de> for Credentials[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for Credentials[src]
impl Serialize for Credentials[src]Auto Trait Implementations
impl RefUnwindSafe for Credentials
impl RefUnwindSafe for Credentialsimpl Send for Credentials
impl Send for Credentialsimpl Sync for Credentials
impl Sync for Credentialsimpl Unpin for Credentials
impl Unpin for Credentialsimpl UnwindSafe for Credentials
impl UnwindSafe for CredentialsBlanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,