pub enum CalendarAPIv3 {
AuthCalendar,
AuthCalendarEvents,
AuthCalendarEventsReadOnly,
AuthCalendarReadOnly,
AuthCalendarSettingsReadOnly,
}Expand description
Calendar API, v3
Variants§
AuthCalendar
Documentation: See, edit, share, and permanently delete all the calendars you can access using Google Calendar, Scope: https://www.googleapis.com/auth/calendar
AuthCalendarEvents
Documentation: View and edit events on all your calendars, Scope: https://www.googleapis.com/auth/calendar.events
AuthCalendarEventsReadOnly
Documentation: View events on all your calendars, Scope: https://www.googleapis.com/auth/calendar.events.readonly
AuthCalendarReadOnly
Documentation: See and download any calendar you can access using your Google Calendar, Scope: https://www.googleapis.com/auth/calendar.readonly
AuthCalendarSettingsReadOnly
Documentation: View your Calendar settings, Scope: https://www.googleapis.com/auth/calendar.settings.readonly
Trait Implementations§
Source§impl Clone for CalendarAPIv3
impl Clone for CalendarAPIv3
Source§fn clone(&self) -> CalendarAPIv3
fn clone(&self) -> CalendarAPIv3
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CalendarAPIv3
impl Debug for CalendarAPIv3
Source§impl FromGoogleScope<CalendarAPIv3> for CalendarAPIv3
impl FromGoogleScope<CalendarAPIv3> for CalendarAPIv3
Source§fn from_google_scope(google_scope: &str) -> Result<CalendarAPIv3, ()>
fn from_google_scope(google_scope: &str) -> Result<CalendarAPIv3, ()>
Converting Google Scope string to enum
This might return
Err if you input an invalid Google Scope.Source§impl Hash for CalendarAPIv3
impl Hash for CalendarAPIv3
Source§impl PartialEq for CalendarAPIv3
impl PartialEq for CalendarAPIv3
Source§impl ToGoogleScope for CalendarAPIv3
impl ToGoogleScope for CalendarAPIv3
Source§fn to_google_scope(&self) -> &'static str
fn to_google_scope(&self) -> &'static str
Converting the enum back to
str literalimpl Copy for CalendarAPIv3
impl Eq for CalendarAPIv3
impl StructuralPartialEq for CalendarAPIv3
Auto Trait Implementations§
impl Freeze for CalendarAPIv3
impl RefUnwindSafe for CalendarAPIv3
impl Send for CalendarAPIv3
impl Sync for CalendarAPIv3
impl Unpin for CalendarAPIv3
impl UnwindSafe for CalendarAPIv3
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