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