[−][src]Enum spotify_oauth::SpotifyScope
Spotify Scopes for the API. This enum implements FromStr and ToString / Display through strum.
All the Spotify API scopes can be found here.
Example
use spotify_oauth::SpotifyScope; use std::str::FromStr; // Convert string into scope. let scope = SpotifyScope::from_str("streaming").unwrap(); assert_eq!(scope, SpotifyScope::Streaming); // It can also convert the scope back into a string. assert_eq!(scope.to_string(), "streaming"); // Or the enum can be used normally. assert_eq!(SpotifyScope::Streaming, scope);
Variants
UserReadRecentlyPlayed
UserTopRead
UserLibraryModify
UserLibraryRead
PlaylistReadPrivate
PlaylistModifyPublic
PlaylistModifyPrivate
PlaylistReadCollaborative
UserReadEmail
UserReadBirthDate
UserReadPrivate
UserReadPlaybackState
UserModifyPlaybackState
UserReadCurrentlyPlaying
AppRemoteControl
Streaming
UserFollowRead
UserFollowModify
Trait Implementations
impl Clone for SpotifyScope
[src]
fn clone(&self) -> SpotifyScope
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<SpotifyScope> for SpotifyScope
[src]
fn eq(&self, other: &SpotifyScope) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Display for SpotifyScope
[src]
impl Debug for SpotifyScope
[src]
impl FromStr for SpotifyScope
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<SpotifyScope, Self::Err>
[src]
impl Serialize for SpotifyScope
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for SpotifyScope
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for SpotifyScope
impl Send for SpotifyScope
impl Unpin for SpotifyScope
impl RefUnwindSafe for SpotifyScope
impl UnwindSafe for SpotifyScope
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<'a, T> TryFrom<&'a str> for T where
T: FromStr,
T: FromStr,
type Err = <T as FromStr>::Err
fn try_from(string: &'a str) -> Result<T, <T as TryFrom<&'a str>>::Err>
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,