pub struct RecurrenceParam {
pub frequency: String,
pub interval: usize,
pub days_of_week: Option<Vec<u8>>,
pub days_of_month: 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) for monthly rules
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for RecurrenceParam
impl JsonSchema for RecurrenceParam
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RecurrenceParam
impl RefUnwindSafe for RecurrenceParam
impl Send for RecurrenceParam
impl Sync for RecurrenceParam
impl Unpin for RecurrenceParam
impl UnsafeUnpin for RecurrenceParam
impl UnwindSafe for RecurrenceParam
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