[][src]Enum lastfm_parse_rs::structs::api_error::ApiErrorKind

pub enum ApiErrorKind {
    InvalidService,
    InvalidMethod,
    AuthenticationFailed,
    InvalidFormat,
    InvalidParameters,
    InvalidResource,
    OperationFailed,
    InvalidSessionKey,
    InvalidApiKey,
    ServiceOffline,
    SubscribersOnly,
    InvalidMethodSignature,
    UnauthorizedToken,
    ItemNotAvailableForStreaming,
    ServiceTemporaryUnavailable,
    LoginRequired,
    TrialExpired,
    NotEnoughContent,
    NotEnoughMembers,
    NotEnoughFans,
    NotEnoughNeighbours,
    NoPeakRadio,
    RadioNotFound,
    ApiKeySuspended,
    Deprecated,
    RateLimitExceeded,
    Unknown,
}

Lastfm API error codes Source: https://www.last.fm/api/errorcodes

Variants

InvalidService
InvalidMethod
AuthenticationFailed
InvalidFormat
InvalidParameters
InvalidResource
OperationFailed
InvalidSessionKey
InvalidApiKey
ServiceOffline
SubscribersOnly
InvalidMethodSignature
UnauthorizedToken
ItemNotAvailableForStreaming
ServiceTemporaryUnavailable
LoginRequired
TrialExpired
NotEnoughContent
NotEnoughMembers
NotEnoughFans
NotEnoughNeighbours
NoPeakRadio
RadioNotFound
ApiKeySuspended
Deprecated
RateLimitExceeded
Unknown

Methods

impl ApiErrorKind[src]

pub fn description(&self) -> &'static str[src]

Returns error code description

Trait Implementations

impl Debug for ApiErrorKind[src]

impl<'de> Deserialize<'de> for ApiErrorKind[src]

impl Display for ApiErrorKind[src]

impl PartialEq<ApiErrorKind> for ApiErrorKind[src]

impl StructuralPartialEq for ApiErrorKind[src]

Auto Trait Implementations

impl RefUnwindSafe for ApiErrorKind

impl Send for ApiErrorKind

impl Sync for ApiErrorKind

impl Unpin for ApiErrorKind

impl UnwindSafe for ApiErrorKind

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.