pub struct EventDraft<'a> {
pub title: &'a str,
pub start: Option<DateTime<Local>>,
pub end: Option<DateTime<Local>>,
pub notes: Option<&'a str>,
pub location: Option<&'a str>,
pub calendar_title: Option<&'a str>,
pub all_day: bool,
pub URL: Option<&'a str>,
pub availability: Option<EventAvailability>,
pub structured_location: Option<&'a StructuredLocation>,
}Expand description
Input for EventsManager::create_event. Only title, start, and end
are required; spread ..Default::default() for the rest. Mirrors
ReminderDraft for consistency.
Fields§
§title: &'a str§start: Option<DateTime<Local>>§end: Option<DateTime<Local>>§notes: Option<&'a str>§location: Option<&'a str>§calendar_title: Option<&'a str>§all_day: bool§URL: Option<&'a str>§availability: Option<EventAvailability>§structured_location: Option<&'a StructuredLocation>Trait Implementations§
Source§impl<'a> Clone for EventDraft<'a>
impl<'a> Clone for EventDraft<'a>
Source§fn clone(&self) -> EventDraft<'a>
fn clone(&self) -> EventDraft<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for EventDraft<'a>
impl<'a> Debug for EventDraft<'a>
Source§impl<'a> Default for EventDraft<'a>
impl<'a> Default for EventDraft<'a>
Source§fn default() -> EventDraft<'a>
fn default() -> EventDraft<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EventDraft<'a>
impl<'a> RefUnwindSafe for EventDraft<'a>
impl<'a> Send for EventDraft<'a>
impl<'a> Sync for EventDraft<'a>
impl<'a> Unpin for EventDraft<'a>
impl<'a> UnsafeUnpin for EventDraft<'a>
impl<'a> UnwindSafe for EventDraft<'a>
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