pub struct RecurrenceRule {
pub by_month: Option<Vec<RecurrenceRuleMonth>>,
pub by_month_day: Option<Vec<u8>>,
pub by_n_weekday: Option<Vec<RecurrenceRuleNWeekday>>,
pub by_weekday: Option<Vec<RecurrenceRuleWeekday>>,
pub by_year_day: Option<Vec<u16>>,
pub count: Option<u64>,
pub end: Option<Timestamp>,
pub frequency: RecurrenceRuleFrequency,
pub interval: u64,
pub start: Timestamp,
}Expand description
Definition for how often a GuildScheduledEvent should recur.
Refer to the module-level documentation for more information.
Fields§
§by_month: Option<Vec<RecurrenceRuleMonth>>Set of specific months to recur on.
by_month_day: Option<Vec<u8>>Set of specific dates within a month to recur on.
by_n_weekday: Option<Vec<RecurrenceRuleNWeekday>>List of specific days within a specific week (1 through 5, inclusively) to recur on.
by_weekday: Option<Vec<RecurrenceRuleWeekday>>Set of specific days within a week for the event to recur on.
by_year_day: Option<Vec<u16>>Set of days within a year to recur on.
Valid values are in the range 1 through 364, inclusively.
This field is currently not able to be set externally.
count: Option<u64>Total amount of times that the event is allowed to recur before stopping.
This field is currently not able to be set externally.
end: Option<Timestamp>Ending time of the recurrence interval.
This field is currently not able to be set externally.
frequency: RecurrenceRuleFrequencyHow often the event occurs.
interval: u64Spacing between the events, defined by frequency. For example,
frequency of
weekly and an interval of 2 would be
“every-other week”.
start: TimestampStarting time of the recurrence interval.