Skip to main content

CalendarEvent

Struct CalendarEvent 

Source
pub struct CalendarEvent {
Show 32 fields pub event_id: String, pub kind: Option<EventKind>, pub series_id: Option<String>, pub original_start: Option<String>, pub original_start_at: Option<String>, pub is_exception: Option<bool>, pub title: String, pub description: Option<String>, pub location: Option<String>, pub metadata: Option<Value>, pub status: Option<EventStatus>, pub all_day: bool, pub start: String, pub end: String, pub timezone: String, pub duration_mode: Option<DurationMode>, pub duration_value: i64, pub start_at: String, pub end_at: String, pub recurrence: Option<Recurrence>, pub attendees: Vec<CalendarAttendee>, pub attendee_count: u32, pub response_status: Option<ResponseStatus>, pub uid: String, pub sequence: u32, pub source: Option<EventSource>, pub organizer_email: Option<String>, pub origin_message_id: Option<String>, pub resource_revision: Option<u64>, pub etag: Option<String>, pub created_at: String, pub updated_at: String,
}
Expand description

A calendar event, as the API returns it.

Fields§

§event_id: String

Unique event id.

§kind: Option<EventKind>

Whether this is a single event, a series definition, or an instance.

§series_id: Option<String>

The series this instance belongs to, when applicable.

§original_start: Option<String>

The series’ start this instance shifted from, when moved (RFC 3339).

§original_start_at: Option<String>

Same as CalendarEvent::original_start, on instance events.

§is_exception: Option<bool>

Whether this instance deviates from the series.

§title: String

Event title.

§description: Option<String>

Long description.

§location: Option<String>

Location, when set.

§metadata: Option<Value>

Your own JSON stored alongside the event.

§status: Option<EventStatus>

Confirmation state.

§all_day: bool

Whether the event lasts all day (then start/end are dates).

§start: String

Display start (RFC 3339, or a date for all-day events).

§end: String

Display end.

§timezone: String

IANA timezone the event renders in.

§duration_mode: Option<DurationMode>

How duration_value is interpreted.

§duration_value: i64

Length in units picked by duration_mode.

§start_at: String

Absolute start (RFC 3339).

§end_at: String

Absolute end (RFC 3339).

§recurrence: Option<Recurrence>

Recurrence rule, when the event repeats.

§attendees: Vec<CalendarAttendee>

Invitees and their replies.

§attendee_count: u32

Number of attendees.

§response_status: Option<ResponseStatus>

The inbox’s own reply state, when it was invited.

§uid: String

iCalendar UID, stable across the series.

§sequence: u32

iCalendar sequence number, bumped on material changes.

§source: Option<EventSource>

Whether the event came from the API or an email.

§organizer_email: Option<String>

Organizer address, when known.

§origin_message_id: Option<String>

The email message the invite arrived in, when from email.

§resource_revision: Option<u64>

Monotonic revision, for optimistic concurrency.

§etag: Option<String>

Opaque revision token for If-Match writes, when returned.

§created_at: String

Creation timestamp (RFC 3339).

§updated_at: String

Last-update timestamp (RFC 3339).

Trait Implementations§

Source§

impl Clone for CalendarEvent

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CalendarEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CalendarEvent

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more