Struct google_calendar3::api::Event

source ·
pub struct Event {
Show 42 fields pub anyone_can_add_self: Option<bool>, pub attachments: Option<Vec<EventAttachment>>, pub attendees: Option<Vec<EventAttendee>>, pub attendees_omitted: Option<bool>, pub color_id: Option<String>, pub conference_data: Option<ConferenceData>, pub created: Option<DateTime<Utc>>, pub creator: Option<EventCreator>, pub description: Option<String>, pub end: Option<EventDateTime>, pub end_time_unspecified: Option<bool>, pub etag: Option<String>, pub event_type: Option<String>, pub extended_properties: Option<EventExtendedProperties>, pub focus_time_properties: Option<EventFocusTimeProperties>, pub gadget: Option<EventGadget>, pub guests_can_invite_others: Option<bool>, pub guests_can_modify: Option<bool>, pub guests_can_see_other_guests: Option<bool>, pub hangout_link: Option<String>, pub html_link: Option<String>, pub i_cal_uid: Option<String>, pub id: Option<String>, pub kind: Option<String>, pub location: Option<String>, pub locked: Option<bool>, pub organizer: Option<EventOrganizer>, pub original_start_time: Option<EventDateTime>, pub out_of_office_properties: Option<EventOutOfOfficeProperties>, pub private_copy: Option<bool>, pub recurrence: Option<Vec<String>>, pub recurring_event_id: Option<String>, pub reminders: Option<EventReminders>, pub sequence: Option<i32>, pub source: Option<EventSource>, pub start: Option<EventDateTime>, pub status: Option<String>, pub summary: Option<String>, pub transparency: Option<String>, pub updated: Option<DateTime<Utc>>, pub visibility: Option<String>, pub working_location_properties: Option<EventWorkingLocationProperties>,
}
Expand description

There is no detailed description.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§anyone_can_add_self: Option<bool>

Whether anyone can invite themselves to the event (deprecated). Optional. The default is False.

§attachments: Option<Vec<EventAttachment>>

File attachments for the event. In order to modify attachments the supportsAttachments request parameter should be set to true. There can be at most 25 attachments per event,

§attendees: Option<Vec<EventAttendee>>

The attendees of the event. See the Events with attendees guide for more information on scheduling events with other calendar users. Service accounts need to use domain-wide delegation of authority to populate the attendee list.

§attendees_omitted: Option<bool>

Whether attendees may have been omitted from the event’s representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant’s response. Optional. The default is False.

§color_id: Option<String>

The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional.

§conference_data: Option<ConferenceData>

The conference-related information, such as details of a Google Meet conference. To create new conference details use the createRequest field. To persist your changes, remember to set the conferenceDataVersion request parameter to 1 for all event modification requests.

§created: Option<DateTime<Utc>>

Creation time of the event (as a RFC3339 timestamp). Read-only.

§creator: Option<EventCreator>

The creator of the event. Read-only.

§description: Option<String>

Description of the event. Can contain HTML. Optional.

§end: Option<EventDateTime>

The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.

§end_time_unspecified: Option<bool>

Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.

§etag: Option<String>

ETag of the resource.

§event_type: Option<String>

Specific type of the event. This cannot be modified after the event is created. Possible values are:

  • “default” - A regular event or not further specified.
  • “outOfOffice” - An out-of-office event.
  • “focusTime” - A focus-time event.
  • “workingLocation” - A working location event. Currently, only “default “ and “workingLocation” events can be created using the API. Extended support for other event types will be made available in later releases.
§extended_properties: Option<EventExtendedProperties>

Extended properties of the event.

§focus_time_properties: Option<EventFocusTimeProperties>

Focus Time event data. Used if eventType is focusTime.

§gadget: Option<EventGadget>

A gadget that extends this event. Gadgets are deprecated; this structure is instead only used for returning birthday calendar metadata.

§guests_can_invite_others: Option<bool>

Whether attendees other than the organizer can invite others to the event. Optional. The default is True.

§guests_can_modify: Option<bool>

Whether attendees other than the organizer can modify the event. Optional. The default is False.

§guests_can_see_other_guests: Option<bool>

Whether attendees other than the organizer can see who the event’s attendees are. Optional. The default is True.

§hangout_link: Option<String>

An absolute link to the Google Hangout associated with this event. Read-only.

§html_link: Option<String>

An absolute link to this event in the Google Calendar Web UI. Read-only.

§i_cal_uid: Option<String>

Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method. Note that the iCalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same iCalUIDs. To retrieve an event using its iCalUID, call the events.list method using the iCalUID parameter. To retrieve an event using its id, call the events.get method.

§id: Option<String>

Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:

  • characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
  • the length of the ID must be between 5 and 1024 characters
  • the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122. If you do not specify an ID, it will be automatically generated by the server. Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs.
§kind: Option<String>

Type of the resource (“calendar#event”).

§location: Option<String>

Geographic location of the event as free-form text. Optional.

§locked: Option<bool>

Whether this is a locked event copy where no changes can be made to the main event fields “summary”, “description”, “location”, “start”, “end” or “recurrence”. The default is False. Read-Only.

§organizer: Option<EventOrganizer>

The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in attendees with the organizer field set to True. To change the organizer, use the move operation. Read-only, except when importing an event.

§original_start_time: Option<EventDateTime>

For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. It uniquely identifies the instance within the recurring event series even if the instance was moved to a different time. Immutable.

§out_of_office_properties: Option<EventOutOfOfficeProperties>

Out of office event data. Used if eventType is outOfOffice.

§private_copy: Option<bool>

If set to True, Event propagation is disabled. Note that it is not the same thing as Private event properties. Optional. Immutable. The default is False.

§recurrence: Option<Vec<String>>

List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events.

§recurring_event_id: Option<String>

For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable.

§reminders: Option<EventReminders>

Information about the event’s reminders for the authenticated user.

§sequence: Option<i32>

Sequence number as per iCalendar.

§source: Option<EventSource>

Source from which the event was created. For example, a web page, an email message or any document identifiable by an URL with HTTP or HTTPS scheme. Can only be seen or modified by the creator of the event.

§start: Option<EventDateTime>

The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.

§status: Option<String>

Status of the event. Optional. Possible values are:

  • “confirmed” - The event is confirmed. This is the default status.
  • “tentative” - The event is tentatively confirmed.
  • “cancelled” - The event is cancelled (deleted). The list method returns cancelled events only on incremental sync (when syncToken or updatedMin are specified) or if the showDeleted flag is set to true. The get method always returns them. A cancelled status represents two different states depending on the event type:
  • Cancelled exceptions of an uncancelled recurring event indicate that this instance should no longer be presented to the user. Clients should store these events for the lifetime of the parent recurring event. Cancelled exceptions are only guaranteed to have values for the id, recurringEventId and originalStartTime fields populated. The other fields might be empty.
  • All other cancelled events represent deleted events. Clients should remove their locally synced copies. Such cancelled events will eventually disappear, so do not rely on them being available indefinitely. Deleted events are only guaranteed to have the id field populated. On the organizer’s calendar, cancelled events continue to expose event details (summary, location, etc.) so that they can be restored (undeleted). Similarly, the events to which the user was invited and that they manually removed continue to provide details. However, incremental sync requests with showDeleted set to false will not return these details. If an event changes its organizer (for example via the move operation) and the original organizer is not on the attendee list, it will leave behind a cancelled event where only the id field is guaranteed to be populated.
§summary: Option<String>

Title of the event.

§transparency: Option<String>

Whether the event blocks time on the calendar. Optional. Possible values are:

  • “opaque” - Default value. The event does block time on the calendar. This is equivalent to setting Show me as to Busy in the Calendar UI.
  • “transparent” - The event does not block time on the calendar. This is equivalent to setting Show me as to Available in the Calendar UI.
§updated: Option<DateTime<Utc>>

Last modification time of the event (as a RFC3339 timestamp). Read-only.

§visibility: Option<String>

Visibility of the event. Optional. Possible values are:

  • “default” - Uses the default visibility for events on the calendar. This is the default value.
  • “public” - The event is public and event details are visible to all readers of the calendar.
  • “private” - The event is private and only event attendees may view event details.
  • “confidential” - The event is private. This value is provided for compatibility reasons.
§working_location_properties: Option<EventWorkingLocationProperties>

Working location event data.

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Event

source§

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

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

impl Default for Event

source§

fn default() -> Event

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Event

source§

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 Serialize for Event

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for Event

source§

impl Resource for Event

source§

impl ResponseResult for Event

Auto Trait Implementations§

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

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> 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> ToOwned for T
where T: Clone,

§

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>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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
source§

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