Struct google_api_proto::google::cloud::osconfig::v1beta::WeekDayOfMonth
source · pub struct WeekDayOfMonth {
pub week_ordinal: i32,
pub day_of_week: i32,
pub day_offset: i32,
}
Expand description
Represents one week day in a month. An example is “the 4th Sunday”.
Fields§
§week_ordinal: i32
Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
day_of_week: i32
Required. A day of the week.
day_offset: i32
Optional. Represents the number of days before or after the given week day of month
that the patch deployment is scheduled for. For example if week_ordinal
and day_of_week
values point to the second day of the month and this
day_offset
value is set to 3
, the patch deployment takes place three
days after the second Tuesday of the month. If this value is negative, for
example -5, the patches are deployed five days before before the second
Tuesday of the month. Allowed values are in range \[-30, 30\]
.
Implementations§
source§impl WeekDayOfMonth
impl WeekDayOfMonth
sourcepub fn day_of_week(&self) -> DayOfWeek
pub fn day_of_week(&self) -> DayOfWeek
Returns the enum value of day_of_week
, or the default if the field is set to an invalid enum value.
sourcepub fn set_day_of_week(&mut self, value: DayOfWeek)
pub fn set_day_of_week(&mut self, value: DayOfWeek)
Sets day_of_week
to the provided enum value.
Trait Implementations§
source§impl Clone for WeekDayOfMonth
impl Clone for WeekDayOfMonth
source§fn clone(&self) -> WeekDayOfMonth
fn clone(&self) -> WeekDayOfMonth
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WeekDayOfMonth
impl Debug for WeekDayOfMonth
source§impl Default for WeekDayOfMonth
impl Default for WeekDayOfMonth
source§impl Message for WeekDayOfMonth
impl Message for WeekDayOfMonth
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 WeekDayOfMonth
impl PartialEq for WeekDayOfMonth
source§fn eq(&self, other: &WeekDayOfMonth) -> bool
fn eq(&self, other: &WeekDayOfMonth) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for WeekDayOfMonth
impl StructuralPartialEq for WeekDayOfMonth
Auto Trait Implementations§
impl Freeze for WeekDayOfMonth
impl RefUnwindSafe for WeekDayOfMonth
impl Send for WeekDayOfMonth
impl Sync for WeekDayOfMonth
impl Unpin for WeekDayOfMonth
impl UnwindSafe for WeekDayOfMonth
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