Struct google_documentai1::api::GoogleRpcStatus[][src]

pub struct GoogleRpcStatus {
    pub code: Option<i32>,
    pub details: Option<Vec<HashMap<String, String>>>,
    pub message: Option<String>,
}

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

This type is not used in any activity, and only used as part of another schema.

Fields

code: Option<i32>

The status code, which should be an enum value of google.rpc.Code.

details: Option<Vec<HashMap<String, String>>>

A list of messages that carry the error details. There is a common set of message types for APIs to use.

message: Option<String>

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

Trait Implementations

impl Clone for GoogleRpcStatus[src]

impl Debug for GoogleRpcStatus[src]

impl Default for GoogleRpcStatus[src]

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

impl Part for GoogleRpcStatus[src]

impl Serialize for GoogleRpcStatus[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> Instrument 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.