Struct scryfall::error::ScryfallError
source · pub struct ScryfallError {
pub status: u16,
pub code: String,
pub details: String,
pub error_type: Option<String>,
pub warnings: Vec<String>,
}
Expand description
An Error object represents a failure to find information or understand the input you provided to the API.
Fields§
§status: u16
An integer HTTP status code for this error.
code: String
A computer-friendly string representing the appropriate HTTP status code.
details: String
A human-readable string explaining the error.
error_type: Option<String>
A computer-friendly string that provides additional context for the main error. For example, an endpoint many generate HTTP 404 errors for different kinds of input. This field will provide a label for the specific kind of 404 failure, such as ambiguous.
warnings: Vec<String>
If your input also generated non-failure warnings, they will be provided as human-readable strings in this array.
Trait Implementations§
source§impl Clone for ScryfallError
impl Clone for ScryfallError
source§fn clone(&self) -> ScryfallError
fn clone(&self) -> ScryfallError
Returns a copy 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 ScryfallError
impl Debug for ScryfallError
source§impl<'de> Deserialize<'de> for ScryfallError
impl<'de> Deserialize<'de> for ScryfallError
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 Display for ScryfallError
impl Display for ScryfallError
source§impl Hash for ScryfallError
impl Hash for ScryfallError
source§impl PartialEq for ScryfallError
impl PartialEq for ScryfallError
source§fn eq(&self, other: &ScryfallError) -> bool
fn eq(&self, other: &ScryfallError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ScryfallError
impl Serialize for ScryfallError
impl Eq for ScryfallError
impl StructuralPartialEq for ScryfallError
Auto Trait Implementations§
impl Freeze for ScryfallError
impl RefUnwindSafe for ScryfallError
impl Send for ScryfallError
impl Sync for ScryfallError
impl Unpin for ScryfallError
impl UnwindSafe for ScryfallError
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<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.