pub struct EventPatch<'a> {
pub title: Option<&'a str>,
pub notes: Option<Option<&'a str>>,
pub location: Option<Option<&'a str>>,
pub start: Option<DateTime<Local>>,
pub end: Option<DateTime<Local>>,
pub all_day: Option<bool>,
pub calendar_title: Option<&'a str>,
pub URL: Option<Option<&'a str>>,
pub availability: Option<EventAvailability>,
pub structured_location: Option<Option<&'a StructuredLocation>>,
pub span: EventSpan,
}Expand description
Input for EventsManager::update_event. Each field uses one of:
None (don’t touch), Some(value) (set). Nullable fields use
Option<Option<T>> so Some(None) clears the value. span controls
whether the edit applies to just this occurrence or all future ones in
a recurring series.
Fields§
§title: Option<&'a str>§notes: Option<Option<&'a str>>§location: Option<Option<&'a str>>§start: Option<DateTime<Local>>§end: Option<DateTime<Local>>§all_day: Option<bool>§calendar_title: Option<&'a str>Move to a different calendar by title.
URL: Option<Option<&'a str>>§availability: Option<EventAvailability>§structured_location: Option<Option<&'a StructuredLocation>>§span: EventSpanThis (default) edits only this occurrence; Future propagates.
Trait Implementations§
Source§impl<'a> Clone for EventPatch<'a>
impl<'a> Clone for EventPatch<'a>
Source§fn clone(&self) -> EventPatch<'a>
fn clone(&self) -> EventPatch<'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 EventPatch<'a>
impl<'a> Debug for EventPatch<'a>
Source§impl<'a> Default for EventPatch<'a>
impl<'a> Default for EventPatch<'a>
Source§fn default() -> EventPatch<'a>
fn default() -> EventPatch<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EventPatch<'a>
impl<'a> RefUnwindSafe for EventPatch<'a>
impl<'a> Send for EventPatch<'a>
impl<'a> Sync for EventPatch<'a>
impl<'a> Unpin for EventPatch<'a>
impl<'a> UnsafeUnpin for EventPatch<'a>
impl<'a> UnwindSafe for EventPatch<'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