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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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