pub struct RecurrenceParam {
pub frequency: String,
pub interval: usize,
pub days_of_week: Option<Vec<u8>>,
pub days_of_month: Option<Vec<i32>>,
pub months_of_year: Option<Vec<i32>>,
pub weeks_of_year: Option<Vec<i32>>,
pub days_of_year: Option<Vec<i32>>,
pub set_positions: Option<Vec<i32>>,
pub end_after_count: Option<usize>,
pub end_date: Option<String>,
}Expand description
Recurrence configuration for inline use in create/update.
Fields§
§frequency: StringFrequency: “daily”, “weekly”, “monthly”, or “yearly”
interval: usizeRepeat every N intervals (e.g., 2 = every 2 weeks). Default: 1
days_of_week: Option<Vec<u8>>Days of the week (1=Sun, 2=Mon, …, 7=Sat) for weekly/monthly rules
days_of_month: Option<Vec<i32>>Days of the month (1..=31, or negatives counting from the end) for monthly rules
months_of_year: Option<Vec<i32>>Months of the year (1..=12) for yearly rules. e.g. [3] = every March
weeks_of_year: Option<Vec<i32>>Weeks of the year (1..=53, or negatives counting from the end) for yearly rules
days_of_year: Option<Vec<i32>>Days of the year (1..=366, or negatives counting from the end) for yearly rules
set_positions: Option<Vec<i32>>Set positions — filter applied after other fields. e.g. with
frequency=monthly, days_of_week=[2], set_positions=[1] = “first Monday
of every month”. Negative values count from the end.
end_after_count: Option<usize>End after this many occurrences (mutually exclusive with end_date)
end_date: Option<String>End on this date in format ‘YYYY-MM-DD’ (mutually exclusive with end_after_count)
Trait Implementations§
Source§impl Debug for RecurrenceParam
impl Debug for RecurrenceParam
Source§impl<'de> Deserialize<'de> for RecurrenceParam
impl<'de> Deserialize<'de> for RecurrenceParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for RecurrenceParam
impl JsonSchema for RecurrenceParam
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more