pub struct GoogleRpcPreconditionFailureViolation {
pub description: Option<String>,
pub subject: Option<String>,
pub type_: Option<String>,
}Expand description
A message type used to describe a single precondition failure.
This type is not used in any activity, and only used as part of another schema.
Fields§
§description: Option<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”.
subject: Option<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.
type_: Option<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”.
Trait Implementations§
Source§impl Clone for GoogleRpcPreconditionFailureViolation
impl Clone for GoogleRpcPreconditionFailureViolation
Source§fn clone(&self) -> GoogleRpcPreconditionFailureViolation
fn clone(&self) -> GoogleRpcPreconditionFailureViolation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GoogleRpcPreconditionFailureViolation
impl Default for GoogleRpcPreconditionFailureViolation
Source§fn default() -> GoogleRpcPreconditionFailureViolation
fn default() -> GoogleRpcPreconditionFailureViolation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleRpcPreconditionFailureViolation
impl<'de> Deserialize<'de> for GoogleRpcPreconditionFailureViolation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleRpcPreconditionFailureViolation
Auto Trait Implementations§
impl Freeze for GoogleRpcPreconditionFailureViolation
impl RefUnwindSafe for GoogleRpcPreconditionFailureViolation
impl Send for GoogleRpcPreconditionFailureViolation
impl Sync for GoogleRpcPreconditionFailureViolation
impl Unpin for GoogleRpcPreconditionFailureViolation
impl UnwindSafe for GoogleRpcPreconditionFailureViolation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more