Enum google_api_proto::google::ads::googleads::v15::errors::keyword_plan_ad_group_error_enum::KeywordPlanAdGroupError
source · #[repr(i32)]pub enum KeywordPlanAdGroupError {
Unspecified = 0,
Unknown = 1,
InvalidName = 2,
DuplicateName = 3,
}
Expand description
Enum describing possible errors from applying a keyword plan ad group.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
InvalidName = 2
The keyword plan ad group name is missing, empty, longer than allowed limit or contains invalid chars.
DuplicateName = 3
The keyword plan ad group name is duplicate to an existing keyword plan AdGroup name or other keyword plan AdGroup name in the request.
Implementations§
source§impl KeywordPlanAdGroupError
impl KeywordPlanAdGroupError
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of KeywordPlanAdGroupError
.
sourcepub fn from_i32(value: i32) -> Option<KeywordPlanAdGroupError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<KeywordPlanAdGroupError>
Converts an i32
to a KeywordPlanAdGroupError
, or None
if value
is not a valid variant.
source§impl KeywordPlanAdGroupError
impl KeywordPlanAdGroupError
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 KeywordPlanAdGroupError
impl Clone for KeywordPlanAdGroupError
source§fn clone(&self) -> KeywordPlanAdGroupError
fn clone(&self) -> KeywordPlanAdGroupError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeywordPlanAdGroupError
impl Debug for KeywordPlanAdGroupError
source§impl Default for KeywordPlanAdGroupError
impl Default for KeywordPlanAdGroupError
source§fn default() -> KeywordPlanAdGroupError
fn default() -> KeywordPlanAdGroupError
source§impl From<KeywordPlanAdGroupError> for i32
impl From<KeywordPlanAdGroupError> for i32
source§fn from(value: KeywordPlanAdGroupError) -> i32
fn from(value: KeywordPlanAdGroupError) -> i32
source§impl Hash for KeywordPlanAdGroupError
impl Hash for KeywordPlanAdGroupError
source§impl Ord for KeywordPlanAdGroupError
impl Ord for KeywordPlanAdGroupError
source§fn cmp(&self, other: &KeywordPlanAdGroupError) -> Ordering
fn cmp(&self, other: &KeywordPlanAdGroupError) -> 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 KeywordPlanAdGroupError
impl PartialEq for KeywordPlanAdGroupError
source§fn eq(&self, other: &KeywordPlanAdGroupError) -> bool
fn eq(&self, other: &KeywordPlanAdGroupError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KeywordPlanAdGroupError
impl PartialOrd for KeywordPlanAdGroupError
source§fn partial_cmp(&self, other: &KeywordPlanAdGroupError) -> Option<Ordering>
fn partial_cmp(&self, other: &KeywordPlanAdGroupError) -> 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 KeywordPlanAdGroupError
impl TryFrom<i32> for KeywordPlanAdGroupError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<KeywordPlanAdGroupError, DecodeError>
fn try_from(value: i32) -> Result<KeywordPlanAdGroupError, DecodeError>
impl Copy for KeywordPlanAdGroupError
impl Eq for KeywordPlanAdGroupError
impl StructuralPartialEq for KeywordPlanAdGroupError
Auto Trait Implementations§
impl Freeze for KeywordPlanAdGroupError
impl RefUnwindSafe for KeywordPlanAdGroupError
impl Send for KeywordPlanAdGroupError
impl Sync for KeywordPlanAdGroupError
impl Unpin for KeywordPlanAdGroupError
impl UnwindSafe for KeywordPlanAdGroupError
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