Struct github::error::ErrorContext [-] [+] [src]

pub struct ErrorContext {
    pub resource: String,
    pub field: String,
    pub code: ErrorCode,
}

When a negative status was given as a response to a request, there might be one or several error descriptions embedded in the body to tell more about the details of what was wrong. ErrorContext is the representation for each of the errors that are given.

Fields

resource
field
code

Trait Implementations

impl Display for ErrorContext

Allowing ErrorContext to be printed via {} in a controlled manner.

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for ErrorContext

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Decodable for ErrorContext

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ErrorContext, Error>