[][src]Struct zoho_crm::response::ApiErrorResponse

pub struct ApiErrorResponse {
    pub code: String,
    pub message: String,
    pub status: String,
}

This is one possible error response that Zoho might send back from an API request. It is different than the response format given back when requesting a token. code will be an identifier for the type of error, while the message field might have more information.

status will return a text status: "error" on error.

There is also a data field we are not capturing.

Fields

code: Stringmessage: Stringstatus: String

Methods

impl ApiErrorResponse[src]

pub fn to_string(&self) -> String[src]

Trait Implementations

impl Debug for ApiErrorResponse[src]

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

Auto Trait Implementations

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: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err