Struct google_api_proto::google::monitoring::v3::UpdateSnoozeRequest
source · pub struct UpdateSnoozeRequest {
pub snooze: Option<Snooze>,
pub update_mask: Option<FieldMask>,
}
Expand description
The message definition for updating a Snooze
. The field, snooze.name
identifies the Snooze
to be updated. The remainder of snooze
gives the
content the Snooze
in question will be assigned.
What fields can be updated depends on the start time and end time of the
Snooze
.
- end time is in the past: These
Snooze
s are considered read-only and cannot be updated. - start time is in the past and end time is in the future:
display_name
andinterval.end_time
can be updated. - start time is in the future:
display_name
,interval.start_time
andinterval.end_time
can be updated.
Fields§
§snooze: Option<Snooze>
Required. The Snooze
to update. Must have the name field present.
update_mask: Option<FieldMask>
Required. The fields to update.
For each field listed in update_mask
:
- If the
Snooze
object supplied in theUpdateSnoozeRequest
has a value for that field, the value of the field in the existingSnooze
will be set to the value of the field in the suppliedSnooze
. - If the field does not have a value in the supplied
Snooze
, the field in the existingSnooze
is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in update_mask
:
display_name
interval.start_time
interval.end_time
That said, the start time and end time of the Snooze
determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for UpdateSnoozeRequest
, which talks about
which fields can be updated.
Trait Implementations§
source§impl Clone for UpdateSnoozeRequest
impl Clone for UpdateSnoozeRequest
source§fn clone(&self) -> UpdateSnoozeRequest
fn clone(&self) -> UpdateSnoozeRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateSnoozeRequest
impl Debug for UpdateSnoozeRequest
source§impl Default for UpdateSnoozeRequest
impl Default for UpdateSnoozeRequest
source§impl Message for UpdateSnoozeRequest
impl Message for UpdateSnoozeRequest
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 UpdateSnoozeRequest
impl PartialEq for UpdateSnoozeRequest
source§fn eq(&self, other: &UpdateSnoozeRequest) -> bool
fn eq(&self, other: &UpdateSnoozeRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateSnoozeRequest
Auto Trait Implementations§
impl Freeze for UpdateSnoozeRequest
impl RefUnwindSafe for UpdateSnoozeRequest
impl Send for UpdateSnoozeRequest
impl Sync for UpdateSnoozeRequest
impl Unpin for UpdateSnoozeRequest
impl UnwindSafe for UpdateSnoozeRequest
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