Enum rspotify_model::error::ApiError [−][src]
pub enum ApiError {
Regular {
status: u16,
message: String,
},
Player {
status: u16,
message: String,
reason: String,
},
}Expand description
Matches errors that are returned from the Spotfiy API as part of the JSON response object.
Variants
See Error Object
Trait Implementations
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