pub struct PlayerErrorObject {
pub message: String,
pub reason: String,
pub status: usize,
}
Expand description
Fields§
§message: String
§reason: String
NO_PREV_TRACK
- The command requires a previous track, but there is none in the context.NO_NEXT_TRACK
- The command requires a next track, but there is none in the context.NO_SPECIFIC_TRACK
- The requested track does not exist.ALREADY_PAUSED
- The command requires playback to not be paused.NOT_PAUSED
- The command requires playback to be paused.NOT_PLAYING_LOCALLY
- The command requires playback on the local device.NOT_PLAYING_TRACK
- The command requires that a track is currently playing.NOT_PLAYING_CONTEXT
- The command requires that a context is currently playing.ENDLESS_CONTEXT
- The shuffle command cannot be applied on an endless context.CONTEXT_DISALLOW
- The command could not be performed on the context.ALREADY_PLAYING
- The track should not be restarted if the same track and context is already playing, and there is a resume point.RATE_LIMITED
- The user is rate limited due to too frequent track play, also known as cat-on-the-keyboard spamming.REMOTE_CONTROL_DISALLOW
- The context cannot be remote-controlled.DEVICE_NOT_CONTROLLABLE
- Not possible to remote control the device.VOLUME_CONTROL_DISALLOW
- Not possible to remote control the device’s volume.NO_ACTIVE_DEVICE
- Requires an active device and the user has none.PREMIUM_REQUIRED
- The request is prohibited for non-premium users.UNKNOWN
- Certain actions are restricted because of unknown reasons.
status: usize
The HTTP status code. Either 404 NOT FOUND
or 403 FORBIDDEN
. Also returned in the response header.
Trait Implementations§
Source§impl Clone for PlayerErrorObject
impl Clone for PlayerErrorObject
Source§fn clone(&self) -> PlayerErrorObject
fn clone(&self) -> PlayerErrorObject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlayerErrorObject
impl Debug for PlayerErrorObject
Source§impl<'de> Deserialize<'de> for PlayerErrorObject
impl<'de> Deserialize<'de> for PlayerErrorObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlayerErrorObject
impl PartialEq for PlayerErrorObject
Source§impl Serialize for PlayerErrorObject
impl Serialize for PlayerErrorObject
impl Eq for PlayerErrorObject
impl StructuralPartialEq for PlayerErrorObject
Auto Trait Implementations§
impl Freeze for PlayerErrorObject
impl RefUnwindSafe for PlayerErrorObject
impl Send for PlayerErrorObject
impl Sync for PlayerErrorObject
impl Unpin for PlayerErrorObject
impl UnwindSafe for PlayerErrorObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.