pub struct CreateEventRequest {Show 13 fields
pub title: String,
pub start: String,
pub end: Option<String>,
pub duration_minutes: i64,
pub notes: Option<String>,
pub location: Option<String>,
pub calendar_name: Option<String>,
pub all_day: bool,
pub URL: Option<String>,
pub availability: Option<String>,
pub structured_location: Option<StructuredLocationInput>,
pub alarms: Option<Vec<AlarmParam>>,
pub recurrence: Option<RecurrenceParam>,
}Fields§
§title: StringThe title of the event
start: StringStart date/time in format ‘YYYY-MM-DD HH:MM’ or ‘YYYY-MM-DD’ for all-day events
end: Option<String>End date/time in format ‘YYYY-MM-DD HH:MM’. If not specified, uses duration_minutes.
duration_minutes: i64Duration in minutes (default: 60). Used if end is not specified.
notes: Option<String>Optional notes/description for the event
location: Option<String>Optional location for the event
calendar_name: Option<String>Optional: The name of the calendar to add to
all_day: boolWhether this is an all-day event
URL: Option<String>Optional URL to associate with the event
availability: Option<String>Optional availability: “busy” (default), “free”, “tentative”, “unavailable”. Controls how the event shows on the timeline.
structured_location: Option<StructuredLocationInput>Optional structured location (title + lat/lng + radius). Enables travel-time, map preview, and “leave at” suggestions in Calendar.app.
alarms: Option<Vec<AlarmParam>>Optional alarms (replaces all existing). Time-based only for events.
recurrence: Option<RecurrenceParam>Optional recurrence rule
Trait Implementations§
Source§impl Debug for CreateEventRequest
impl Debug for CreateEventRequest
Source§impl<'de> Deserialize<'de> for CreateEventRequest
impl<'de> Deserialize<'de> for CreateEventRequest
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 CreateEventRequest
impl JsonSchema for CreateEventRequest
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