Struct google_api_proto::google::api::cloudquotas::v1::UpdateQuotaPreferenceRequest
source · pub struct UpdateQuotaPreferenceRequest {
pub update_mask: Option<FieldMask>,
pub quota_preference: Option<QuotaPreference>,
pub allow_missing: bool,
pub validate_only: bool,
pub ignore_safety_checks: Vec<i32>,
}
Expand description
Message for updating a QuotaPreference
Fields§
§update_mask: Option<FieldMask>
Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
quota_preference: Option<QuotaPreference>
Required. The resource being updated
allow_missing: bool
Optional. If set to true, and the quota preference is not found, a new one
will be created. In this situation, update_mask
is ignored.
validate_only: bool
Optional. If set to true, validate the request, but do not actually update. Note that a request being valid does not mean that the request is guaranteed to be fulfilled.
ignore_safety_checks: Vec<i32>
The list of quota safety checks to be ignored.
Implementations§
source§impl UpdateQuotaPreferenceRequest
impl UpdateQuotaPreferenceRequest
sourcepub fn ignore_safety_checks(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<QuotaSafetyCheck>>
pub fn ignore_safety_checks( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<QuotaSafetyCheck>>
Returns an iterator which yields the valid enum values contained in ignore_safety_checks
.
sourcepub fn push_ignore_safety_checks(&mut self, value: QuotaSafetyCheck)
pub fn push_ignore_safety_checks(&mut self, value: QuotaSafetyCheck)
Appends the provided enum value to ignore_safety_checks
.
Trait Implementations§
source§impl Clone for UpdateQuotaPreferenceRequest
impl Clone for UpdateQuotaPreferenceRequest
source§fn clone(&self) -> UpdateQuotaPreferenceRequest
fn clone(&self) -> UpdateQuotaPreferenceRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateQuotaPreferenceRequest
impl Debug for UpdateQuotaPreferenceRequest
source§impl Message for UpdateQuotaPreferenceRequest
impl Message for UpdateQuotaPreferenceRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UpdateQuotaPreferenceRequest
impl PartialEq for UpdateQuotaPreferenceRequest
source§fn eq(&self, other: &UpdateQuotaPreferenceRequest) -> bool
fn eq(&self, other: &UpdateQuotaPreferenceRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateQuotaPreferenceRequest
Auto Trait Implementations§
impl Freeze for UpdateQuotaPreferenceRequest
impl RefUnwindSafe for UpdateQuotaPreferenceRequest
impl Send for UpdateQuotaPreferenceRequest
impl Sync for UpdateQuotaPreferenceRequest
impl Unpin for UpdateQuotaPreferenceRequest
impl UnwindSafe for UpdateQuotaPreferenceRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request