Enum google_api_proto::google::ads::googleads::v15::errors::operation_access_denied_error_enum::OperationAccessDeniedError
source · #[repr(i32)]pub enum OperationAccessDeniedError {
Unspecified = 0,
Unknown = 1,
ActionNotPermitted = 2,
CreateOperationNotPermitted = 3,
RemoveOperationNotPermitted = 4,
UpdateOperationNotPermitted = 5,
MutateActionNotPermittedForClient = 6,
OperationNotPermittedForCampaignType = 7,
CreateAsRemovedNotPermitted = 8,
OperationNotPermittedForRemovedResource = 9,
OperationNotPermittedForAdGroupType = 10,
MutateNotPermittedForCustomer = 11,
}
Expand description
Enum describing possible operation access denied errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
ActionNotPermitted = 2
Unauthorized invocation of a service’s method (get, mutate, etc.)
CreateOperationNotPermitted = 3
Unauthorized CREATE operation in invoking a service’s mutate method.
RemoveOperationNotPermitted = 4
Unauthorized REMOVE operation in invoking a service’s mutate method.
UpdateOperationNotPermitted = 5
Unauthorized UPDATE operation in invoking a service’s mutate method.
MutateActionNotPermittedForClient = 6
A mutate action is not allowed on this resource, from this client.
OperationNotPermittedForCampaignType = 7
This operation is not permitted on this campaign type
CreateAsRemovedNotPermitted = 8
A CREATE operation may not set status to REMOVED.
OperationNotPermittedForRemovedResource = 9
This operation is not allowed because the resource is removed.
OperationNotPermittedForAdGroupType = 10
This operation is not permitted on this ad group type.
MutateNotPermittedForCustomer = 11
The mutate is not allowed for this customer.
Implementations§
source§impl OperationAccessDeniedError
impl OperationAccessDeniedError
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of OperationAccessDeniedError
.
sourcepub fn from_i32(value: i32) -> Option<OperationAccessDeniedError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<OperationAccessDeniedError>
Converts an i32
to a OperationAccessDeniedError
, or None
if value
is not a valid variant.
source§impl OperationAccessDeniedError
impl OperationAccessDeniedError
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 OperationAccessDeniedError
impl Clone for OperationAccessDeniedError
source§fn clone(&self) -> OperationAccessDeniedError
fn clone(&self) -> OperationAccessDeniedError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OperationAccessDeniedError
impl Debug for OperationAccessDeniedError
source§impl Default for OperationAccessDeniedError
impl Default for OperationAccessDeniedError
source§fn default() -> OperationAccessDeniedError
fn default() -> OperationAccessDeniedError
source§impl From<OperationAccessDeniedError> for i32
impl From<OperationAccessDeniedError> for i32
source§fn from(value: OperationAccessDeniedError) -> i32
fn from(value: OperationAccessDeniedError) -> i32
source§impl Hash for OperationAccessDeniedError
impl Hash for OperationAccessDeniedError
source§impl Ord for OperationAccessDeniedError
impl Ord for OperationAccessDeniedError
source§fn cmp(&self, other: &OperationAccessDeniedError) -> Ordering
fn cmp(&self, other: &OperationAccessDeniedError) -> 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 OperationAccessDeniedError
impl PartialEq for OperationAccessDeniedError
source§fn eq(&self, other: &OperationAccessDeniedError) -> bool
fn eq(&self, other: &OperationAccessDeniedError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OperationAccessDeniedError
impl PartialOrd for OperationAccessDeniedError
source§fn partial_cmp(&self, other: &OperationAccessDeniedError) -> Option<Ordering>
fn partial_cmp(&self, other: &OperationAccessDeniedError) -> 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 OperationAccessDeniedError
impl TryFrom<i32> for OperationAccessDeniedError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<OperationAccessDeniedError, DecodeError>
fn try_from(value: i32) -> Result<OperationAccessDeniedError, DecodeError>
impl Copy for OperationAccessDeniedError
impl Eq for OperationAccessDeniedError
impl StructuralPartialEq for OperationAccessDeniedError
Auto Trait Implementations§
impl Freeze for OperationAccessDeniedError
impl RefUnwindSafe for OperationAccessDeniedError
impl Send for OperationAccessDeniedError
impl Sync for OperationAccessDeniedError
impl Unpin for OperationAccessDeniedError
impl UnwindSafe for OperationAccessDeniedError
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