[][src]Struct japi::Error

pub struct Error {
    pub id: Option<String>,
    pub links: Option<Links>,
    pub status: Option<String>,
    pub code: Option<String>,
    pub title: Option<String>,
    pub detail: Option<String>,
    pub source: Option<ErrorSource>,
    pub meta: Option<Meta>,
}

Additional information about any errors encountered while processing a request

See the JSON:API docs for more information

Fields

id: Option<String>

A unique identifier for this particular occurrence of the problem

links: Option<Links>

Should contain an about link that leads to further details about this particular occurrence of the problem

status: Option<String>

The HTTP status code applicable to this problem

code: Option<String>

An application-specific error code

title: Option<String>

A short human-readable summary of the problem that SHOULD NOT change between occurrences

detail: Option<String>

A human-readable explaination specific to this occurence of the problem

source: Option<ErrorSource>

Information about the source of the Error

meta: Option<Meta>

Non-standard meta information

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl Default for Error[src]

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

impl PartialEq<Error> for Error[src]

impl Serialize for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.