#[non_exhaustive]pub struct ScheduleCalendarSpec {
pub second: String,
pub minute: String,
pub hour: String,
pub day_of_month: String,
pub month: String,
pub day_of_week: String,
pub year: String,
pub comment: String,
}Expand description
A calendar-based schedule trigger using range strings (e.g., "2-7" for hours 2 through 7).
Empty strings use server defaults (typically "*" for most fields, "0" for seconds/minutes).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.second: StringSecond within the minute. Default: "0".
minute: StringMinute within the hour. Default: "0".
hour: StringHour of the day. Default: "0".
day_of_month: StringDay of the month. Default: "*".
month: StringMonth of the year. Default: "*".
day_of_week: StringDay of the week. Default: "*".
year: StringYear. Default: "*".
comment: StringFree-form comment.
Implementations§
Source§impl ScheduleCalendarSpec
impl ScheduleCalendarSpec
Sourcepub fn builder() -> ScheduleCalendarSpecBuilder
pub fn builder() -> ScheduleCalendarSpecBuilder
Create an instance of ScheduleCalendarSpec using the builder syntax
Trait Implementations§
Source§impl Clone for ScheduleCalendarSpec
impl Clone for ScheduleCalendarSpec
Source§fn clone(&self) -> ScheduleCalendarSpec
fn clone(&self) -> ScheduleCalendarSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScheduleCalendarSpec
impl Debug for ScheduleCalendarSpec
Source§impl Default for ScheduleCalendarSpec
impl Default for ScheduleCalendarSpec
Source§fn default() -> ScheduleCalendarSpec
fn default() -> ScheduleCalendarSpec
Returns the “default value” for a type. Read more
Source§impl From<ScheduleCalendarSpec> for CalendarSpec
impl From<ScheduleCalendarSpec> for CalendarSpec
Source§fn from(s: ScheduleCalendarSpec) -> Self
fn from(s: ScheduleCalendarSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScheduleCalendarSpec
impl PartialEq for ScheduleCalendarSpec
impl StructuralPartialEq for ScheduleCalendarSpec
Auto Trait Implementations§
impl Freeze for ScheduleCalendarSpec
impl RefUnwindSafe for ScheduleCalendarSpec
impl Send for ScheduleCalendarSpec
impl Sync for ScheduleCalendarSpec
impl Unpin for ScheduleCalendarSpec
impl UnsafeUnpin for ScheduleCalendarSpec
impl UnwindSafe for ScheduleCalendarSpec
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request