Struct gapi_grpc::google::rpc::precondition_failure::Violation[][src]

pub struct Violation {
    pub type: String,
    pub subject: String,
    pub description: String,
}

A message type used to describe a single precondition failure.

Fields

type: String

The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, “TOS” for “Terms of Service violation”.

subject: String

The subject, relative to the type, that failed. For example, “google.com/cloud” relative to the “TOS” type would indicate which terms of service is being referenced.

description: String

A description of how the precondition failed. Developers can use this description to understand how to fix the failure.

For example: “Terms of service not accepted”.

Trait Implementations

impl Clone for Violation[src]

impl Debug for Violation[src]

impl Default for Violation[src]

impl Message for Violation[src]

impl PartialEq<Violation> for Violation[src]

impl StructuralPartialEq for Violation[src]

Auto Trait Implementations

impl RefUnwindSafe for Violation

impl Send for Violation

impl Sync for Violation

impl Unpin for Violation

impl UnwindSafe for Violation

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]