[][src]Struct google_file1::Status

pub struct Status {
    pub message: Option<String>,
    pub code: Option<i32>,
    pub details: Option<Vec<HashMap<String, 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

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.

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.

Trait Implementations

impl Part for Status[src]

impl Default for Status[src]

impl Clone for Status[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Status[src]

impl Serialize for Status[src]

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

Auto Trait Implementations

impl Send for Status

impl Unpin for Status

impl Sync for Status

impl UnwindSafe for Status

impl RefUnwindSafe for Status

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]