grom/guild/scheduled_event/recurrence_rule
Types
pub type Create {
Create(
start: timestamp.Timestamp,
frequency: Frequency,
interval: Int,
by_weekday: option.Option(List(Weekday)),
by_n_weekday: option.Option(List(NWeekday)),
by_month: option.Option(List(Month)),
by_month_day: option.Option(List(Int)),
)
}
Constructors
-
Create( start: timestamp.Timestamp, frequency: Frequency, interval: Int, by_weekday: option.Option(List(Weekday)), by_n_weekday: option.Option(List(NWeekday)), by_month: option.Option(List(Month)), by_month_day: option.Option(List(Int)), )
pub type Frequency {
Yearly
Monthly
Weekly
Daily
}
Constructors
-
Yearly -
Monthly -
Weekly -
Daily
pub type Month {
January
February
March
April
May
June
July
August
September
October
November
December
}
Constructors
-
January -
February -
March -
April -
May -
June -
July -
August -
September -
October -
November -
December
pub type RecurrenceRule {
RecurrenceRule(
start: timestamp.Timestamp,
end: option.Option(timestamp.Timestamp),
frequency: Frequency,
interval: Int,
by_weekday: option.Option(List(Weekday)),
by_n_weekday: option.Option(List(NWeekday)),
by_month: option.Option(List(Month)),
by_month_day: option.Option(List(Int)),
by_year_day: option.Option(List(Int)),
count: option.Option(Int),
)
}
Constructors
-
RecurrenceRule( start: timestamp.Timestamp, end: option.Option(timestamp.Timestamp), frequency: Frequency, interval: Int, by_weekday: option.Option(List(Weekday)), by_n_weekday: option.Option(List(NWeekday)), by_month: option.Option(List(Month)), by_month_day: option.Option(List(Int)), by_year_day: option.Option(List(Int)), count: option.Option(Int), )