Enum google_api_proto::google::ads::googleads::v15::errors::custom_audience_error_enum::CustomAudienceError
source · #[repr(i32)]pub enum CustomAudienceError {
Unspecified = 0,
Unknown = 1,
NameAlreadyUsed = 2,
CannotRemoveWhileInUse = 3,
ResourceAlreadyRemoved = 4,
MemberTypeAndParameterAlreadyExisted = 5,
InvalidMemberType = 6,
MemberTypeAndValueDoesNotMatch = 7,
PolicyViolation = 8,
InvalidTypeChange = 9,
}
Expand description
Enum describing possible custom audience errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
NameAlreadyUsed = 2
New name in the custom audience is duplicated ignoring cases.
CannotRemoveWhileInUse = 3
Cannot remove a custom audience while it’s still being used as targeting.
ResourceAlreadyRemoved = 4
Cannot update or remove a custom audience that is already removed.
MemberTypeAndParameterAlreadyExisted = 5
The pair of [type, value] already exists in members.
InvalidMemberType = 6
Member type is invalid.
MemberTypeAndValueDoesNotMatch = 7
Member type does not have associated value.
PolicyViolation = 8
Custom audience contains a member that violates policy.
InvalidTypeChange = 9
Change in custom audience type is not allowed.
Implementations§
source§impl CustomAudienceError
impl CustomAudienceError
sourcepub fn from_i32(value: i32) -> Option<CustomAudienceError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CustomAudienceError>
Converts an i32
to a CustomAudienceError
, or None
if value
is not a valid variant.
source§impl CustomAudienceError
impl CustomAudienceError
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 CustomAudienceError
impl Clone for CustomAudienceError
source§fn clone(&self) -> CustomAudienceError
fn clone(&self) -> CustomAudienceError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomAudienceError
impl Debug for CustomAudienceError
source§impl Default for CustomAudienceError
impl Default for CustomAudienceError
source§fn default() -> CustomAudienceError
fn default() -> CustomAudienceError
source§impl From<CustomAudienceError> for i32
impl From<CustomAudienceError> for i32
source§fn from(value: CustomAudienceError) -> i32
fn from(value: CustomAudienceError) -> i32
source§impl Hash for CustomAudienceError
impl Hash for CustomAudienceError
source§impl Ord for CustomAudienceError
impl Ord for CustomAudienceError
source§fn cmp(&self, other: &CustomAudienceError) -> Ordering
fn cmp(&self, other: &CustomAudienceError) -> 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 CustomAudienceError
impl PartialEq for CustomAudienceError
source§fn eq(&self, other: &CustomAudienceError) -> bool
fn eq(&self, other: &CustomAudienceError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CustomAudienceError
impl PartialOrd for CustomAudienceError
source§fn partial_cmp(&self, other: &CustomAudienceError) -> Option<Ordering>
fn partial_cmp(&self, other: &CustomAudienceError) -> 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 CustomAudienceError
impl TryFrom<i32> for CustomAudienceError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CustomAudienceError, DecodeError>
fn try_from(value: i32) -> Result<CustomAudienceError, DecodeError>
impl Copy for CustomAudienceError
impl Eq for CustomAudienceError
impl StructuralPartialEq for CustomAudienceError
Auto Trait Implementations§
impl Freeze for CustomAudienceError
impl RefUnwindSafe for CustomAudienceError
impl Send for CustomAudienceError
impl Sync for CustomAudienceError
impl Unpin for CustomAudienceError
impl UnwindSafe for CustomAudienceError
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