Enum google_api_proto::google::apps::script::type::calendar::calendar_add_on_manifest::EventAccess
source · #[repr(i32)]pub enum EventAccess {
Unspecified = 0,
Metadata = 1,
Read = 3,
Write = 4,
ReadWrite = 5,
}
Expand description
An enum defining the level of data access event triggers require.
Variants§
Unspecified = 0
Default value when nothing is set for EventAccess.
Metadata = 1
METADATA gives event triggers the permission to access the metadata of events such as event id and calendar id.
Read = 3
READ gives event triggers access to all provided event fields including the metadata, attendees, and conference data.
Write = 4
WRITE gives event triggers access to the metadata of events and the ability to perform all actions, including adding attendees and setting conference data.
ReadWrite = 5
READ_WRITE gives event triggers access to all provided event fields including the metadata, attendees, and conference data and the ability to perform all actions.
Implementations§
source§impl EventAccess
impl EventAccess
source§impl EventAccess
impl EventAccess
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for EventAccess
impl Clone for EventAccess
source§fn clone(&self) -> EventAccess
fn clone(&self) -> EventAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventAccess
impl Debug for EventAccess
source§impl Default for EventAccess
impl Default for EventAccess
source§fn default() -> EventAccess
fn default() -> EventAccess
source§impl From<EventAccess> for i32
impl From<EventAccess> for i32
source§fn from(value: EventAccess) -> i32
fn from(value: EventAccess) -> i32
source§impl Hash for EventAccess
impl Hash for EventAccess
source§impl Ord for EventAccess
impl Ord for EventAccess
source§fn cmp(&self, other: &EventAccess) -> Ordering
fn cmp(&self, other: &EventAccess) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for EventAccess
impl PartialEq for EventAccess
source§fn eq(&self, other: &EventAccess) -> bool
fn eq(&self, other: &EventAccess) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EventAccess
impl PartialOrd for EventAccess
source§fn partial_cmp(&self, other: &EventAccess) -> Option<Ordering>
fn partial_cmp(&self, other: &EventAccess) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for EventAccess
impl TryFrom<i32> for EventAccess
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<EventAccess, DecodeError>
fn try_from(value: i32) -> Result<EventAccess, DecodeError>
impl Copy for EventAccess
impl Eq for EventAccess
impl StructuralPartialEq for EventAccess
Auto Trait Implementations§
impl Freeze for EventAccess
impl RefUnwindSafe for EventAccess
impl Send for EventAccess
impl Sync for EventAccess
impl Unpin for EventAccess
impl UnwindSafe for EventAccess
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request