pub struct StructuredCalendarSpec {
pub second: Vec<Range>,
pub minute: Vec<Range>,
pub hour: Vec<Range>,
pub day_of_month: Vec<Range>,
pub month: Vec<Range>,
pub year: Vec<Range>,
pub day_of_week: Vec<Range>,
pub comment: String,
}Expand description
StructuredCalendarSpec describes an event specification relative to the calendar, in a form that’s easy to work with programmatically. Each field can be one or more ranges. A timestamp matches if at least one range of each field matches the corresponding fields of the timestamp, except for year: if year is missing, that means all years match. For all fields besides year, at least one Range must be present to match anything. Relative expressions such as “last day of the month” or “third Monday” are not currently representable; callers must enumerate the concrete days they require.
Fields§
§second: Vec<Range>Match seconds (0-59)
minute: Vec<Range>Match minutes (0-59)
hour: Vec<Range>Match hours (0-23)
day_of_month: Vec<Range>Match days of the month (1-31) (– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field –)
month: Vec<Range>Match months (1-12)
year: Vec<Range>Match years.
day_of_week: Vec<Range>Match days of the week (0-6; 0 is Sunday).
comment: StringFree-form comment describing the intention of this spec.
Trait Implementations§
Source§impl Clone for StructuredCalendarSpec
impl Clone for StructuredCalendarSpec
Source§fn clone(&self) -> StructuredCalendarSpec
fn clone(&self) -> StructuredCalendarSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StructuredCalendarSpec
impl Debug for StructuredCalendarSpec
Source§impl Default for StructuredCalendarSpec
impl Default for StructuredCalendarSpec
Source§impl Message for StructuredCalendarSpec
impl Message for StructuredCalendarSpec
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 Name for StructuredCalendarSpec
impl Name for StructuredCalendarSpec
Source§const NAME: &'static str = "StructuredCalendarSpec"
const NAME: &'static str = "StructuredCalendarSpec"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.schedule.v1"
const PACKAGE: &'static str = "temporal.api.schedule.v1"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for StructuredCalendarSpec
impl PartialEq for StructuredCalendarSpec
impl StructuralPartialEq for StructuredCalendarSpec
Auto Trait Implementations§
impl Freeze for StructuredCalendarSpec
impl RefUnwindSafe for StructuredCalendarSpec
impl Send for StructuredCalendarSpec
impl Sync for StructuredCalendarSpec
impl Unpin for StructuredCalendarSpec
impl UnsafeUnpin for StructuredCalendarSpec
impl UnwindSafe for StructuredCalendarSpec
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