pub struct CycleScheduleCreateArgs {
pub id: String,
pub name: String,
pub cadence: String,
pub interval: Option<u32>,
pub unit: Option<String>,
pub duration: u32,
pub duration_unit: String,
pub start_date: String,
pub timezone: String,
pub look_ahead: Option<u32>,
pub confirm: bool,
}Expand description
The flags that define a schedule (tix cycle schedule create).
Fields§
§id: StringStable schedule id (letters, digits, -, _, :); never reused
name: StringDisplay label, unique case-insensitively within the registry
cadence: StringCadence family: daily, weekly, monthly or interval
interval is the family that carries --unit; the other three are the
calendar-step families and refuse a unit.
interval: Option<u32>How many cadence units between cycle starts (1-1000; absent means 1)
unit: Option<String>The unit an interval cadence counts in: days, weeks, months
duration: u32How long one cycle lasts, as a positive count
duration_unit: StringThe duration’s unit: days, weeks, months
start_date: StringThe schedule’s stable anchor, a YYYY-MM-DD calendar date
timezone: StringFixed UTC offset the schedule is expressed in: UTC or ±HH:MM
allow_hyphen_values so a west-of-UTC offset (-05:00) reaches the
validator instead of being swallowed by clap as an unknown flag.
look_ahead: Option<u32>How many future cycles to consider beyond the current one (0 when absent)
confirm: boolConfirm the creation without prompting
Trait Implementations§
Source§impl Args for CycleScheduleCreateArgs
impl Args for CycleScheduleCreateArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CycleScheduleCreateArgs
impl Clone for CycleScheduleCreateArgs
Source§impl Debug for CycleScheduleCreateArgs
impl Debug for CycleScheduleCreateArgs
Source§impl FromArgMatches for CycleScheduleCreateArgs
impl FromArgMatches for CycleScheduleCreateArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CycleScheduleCreateArgs
impl RefUnwindSafe for CycleScheduleCreateArgs
impl Send for CycleScheduleCreateArgs
impl Sync for CycleScheduleCreateArgs
impl Unpin for CycleScheduleCreateArgs
impl UnsafeUnpin for CycleScheduleCreateArgs
impl UnwindSafe for CycleScheduleCreateArgs
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more