Struct trovo::ApiError [−][src]
pub struct ApiError { pub status: ErrorStatus, pub message: String, }
Expand description
Struct representing errors that trovo api responds with.
Fields
status: ErrorStatus
Trovo error code indicating what went wrong.
message: String
Trovo provided message describing the error
Implementations
Returns true if the given status code is know to return friendly errors
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
Auto Trait Implementations
impl RefUnwindSafe for ApiError
impl UnwindSafe for ApiError