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>,
}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)
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AlarmParam
impl JsonSchema for AlarmParam
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 AlarmParam
impl RefUnwindSafe for AlarmParam
impl Send for AlarmParam
impl Sync for AlarmParam
impl Unpin for AlarmParam
impl UnsafeUnpin for AlarmParam
impl UnwindSafe for AlarmParam
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