Enum google_api_proto::google::apps::events::subscriptions::v1::subscription::ErrorType
source · #[repr(i32)]pub enum ErrorType {
Unspecified = 0,
UserScopeRevoked = 1,
ResourceDeleted = 2,
UserAuthorizationFailure = 3,
EndpointPermissionDenied = 4,
EndpointNotFound = 6,
EndpointResourceExhausted = 7,
Other = 5,
}
Expand description
Possible errors for a subscription.
Variants§
Unspecified = 0
Default value. This value is unused.
UserScopeRevoked = 1
The authorizing user has revoked the grant of one or more OAuth scopes. To learn more about authorization for Google Workspace, see Configure the OAuth consent screen.
ResourceDeleted = 2
The target resource for the subscription no longer exists.
UserAuthorizationFailure = 3
The user that authorized the creation of the subscription no longer has access to the subscription’s target resource.
EndpointPermissionDenied = 4
The Google Workspace application doesn’t have access to deliver events to your subscription’s notification endpoint.
EndpointNotFound = 6
The subscription’s notification endpoint doesn’t exist, or the endpoint can’t be found in the Google Cloud project where you created the subscription.
EndpointResourceExhausted = 7
The subscription’s notification endpoint failed to receive events due to insufficient quota or reaching rate limiting.
Other = 5
An unidentified error has occurred.
Implementations§
source§impl ErrorType
impl ErrorType
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 Ord for ErrorType
impl Ord for ErrorType
source§impl PartialEq for ErrorType
impl PartialEq for ErrorType
source§impl PartialOrd for ErrorType
impl PartialOrd for ErrorType
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 ErrorType
impl TryFrom<i32> for ErrorType
§type Error = DecodeError
type Error = DecodeError
impl Copy for ErrorType
impl Eq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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