Enum google_api_proto::google::ads::googleads::v15::errors::label_error_enum::LabelError
source · #[repr(i32)]pub enum LabelError {
Unspecified = 0,
Unknown = 1,
CannotApplyInactiveLabel = 2,
CannotApplyLabelToDisabledAdGroupCriterion = 3,
CannotApplyLabelToNegativeAdGroupCriterion = 4,
ExceededLabelLimitPerType = 5,
InvalidResourceForManagerLabel = 6,
DuplicateName = 7,
InvalidLabelName = 8,
CannotAttachLabelToDraft = 9,
CannotAttachNonManagerLabelToCustomer = 10,
}
Expand description
Enum describing possible label errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
CannotApplyInactiveLabel = 2
An inactive label cannot be applied.
CannotApplyLabelToDisabledAdGroupCriterion = 3
A label cannot be applied to a disabled ad group criterion.
CannotApplyLabelToNegativeAdGroupCriterion = 4
A label cannot be applied to a negative ad group criterion.
ExceededLabelLimitPerType = 5
Cannot apply more than 50 labels per resource.
InvalidResourceForManagerLabel = 6
Labels from a manager account cannot be applied to campaign, ad group, ad group ad, or ad group criterion resources.
DuplicateName = 7
Label names must be unique.
InvalidLabelName = 8
Label names cannot be empty.
CannotAttachLabelToDraft = 9
Labels cannot be applied to a draft.
CannotAttachNonManagerLabelToCustomer = 10
Labels not from a manager account cannot be applied to the customer resource.
Implementations§
source§impl LabelError
impl LabelError
source§impl LabelError
impl LabelError
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 LabelError
impl Clone for LabelError
source§fn clone(&self) -> LabelError
fn clone(&self) -> LabelError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LabelError
impl Debug for LabelError
source§impl Default for LabelError
impl Default for LabelError
source§fn default() -> LabelError
fn default() -> LabelError
source§impl From<LabelError> for i32
impl From<LabelError> for i32
source§fn from(value: LabelError) -> i32
fn from(value: LabelError) -> i32
source§impl Hash for LabelError
impl Hash for LabelError
source§impl Ord for LabelError
impl Ord for LabelError
source§fn cmp(&self, other: &LabelError) -> Ordering
fn cmp(&self, other: &LabelError) -> 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 LabelError
impl PartialEq for LabelError
source§fn eq(&self, other: &LabelError) -> bool
fn eq(&self, other: &LabelError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LabelError
impl PartialOrd for LabelError
source§fn partial_cmp(&self, other: &LabelError) -> Option<Ordering>
fn partial_cmp(&self, other: &LabelError) -> 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 LabelError
impl TryFrom<i32> for LabelError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<LabelError, DecodeError>
fn try_from(value: i32) -> Result<LabelError, DecodeError>
impl Copy for LabelError
impl Eq for LabelError
impl StructuralPartialEq for LabelError
Auto Trait Implementations§
impl Freeze for LabelError
impl RefUnwindSafe for LabelError
impl Send for LabelError
impl Sync for LabelError
impl Unpin for LabelError
impl UnwindSafe for LabelError
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