pub struct AlarmParam {
pub relative_offset: Option<f64>,
pub proximity: Option<String>,
pub location_title: Option<String>,
pub latitude: Option<f64>,
pub longitude: Option<f64>,
pub radius: Option<f64>,
pub email_address: Option<String>,
pub sound_name: Option<String>,
pub url: Option<String>,
}Expand description
Alarm configuration for inline use in create/update.
Fields§
§relative_offset: Option<f64>Offset in seconds before the due date (negative = before, e.g., -600 = 10 minutes before)
proximity: Option<String>Proximity trigger: “enter” or “leave” (for location-based alarms on reminders)
location_title: Option<String>Title of the location for geofenced alarms
latitude: Option<f64>Latitude of the location
longitude: Option<f64>Longitude of the location
radius: Option<f64>Geofence radius in meters (default: 100)
email_address: Option<String>Email address — if set, EventKit treats this as an email-type alarm (server-side notification for CalDAV calendars).
sound_name: Option<String>Custom audio cue name — if set, EventKit treats this as an audio-type alarm. Macos sound names: “Glass”, “Ping”, “Pop”, etc.
url: Option<String>URL opened when the alarm fires — if set, EventKit treats this as a procedure-type alarm. Apple deprecated this property in macOS 10.9 but it still functions. Strictly RFC 3986 validated.
Trait Implementations§
Source§impl Debug for AlarmParam
impl Debug for AlarmParam
Source§impl<'de> Deserialize<'de> for AlarmParam
impl<'de> Deserialize<'de> for AlarmParam
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 AlarmParam
impl JsonSchema for AlarmParam
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