Enum google_api_proto::google::ads::googleads::v14::errors::audience_error_enum::AudienceError
source · #[repr(i32)]pub enum AudienceError {
Unspecified = 0,
Unknown = 1,
NameAlreadyInUse = 2,
DimensionInvalid = 3,
AudienceSegmentNotFound = 4,
AudienceSegmentTypeNotSupported = 5,
DuplicateAudienceSegment = 6,
TooManySegments = 7,
TooManyDimensionsOfSameType = 8,
InUse = 9,
}
Expand description
Enum describing possible audience errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
NameAlreadyInUse = 2
An audience with this name already exists.
DimensionInvalid = 3
A dimension within the audience definition is not valid.
AudienceSegmentNotFound = 4
One of the audience segment added is not found.
AudienceSegmentTypeNotSupported = 5
One of the audience segment type is not supported.
DuplicateAudienceSegment = 6
The same segment already exists in this audience.
TooManySegments = 7
Audience can’t have more than allowed number segments.
TooManyDimensionsOfSameType = 8
Audience can’t have multiple dimensions of same type.
InUse = 9
The audience cannot be removed, because it is currently used in an ad group criterion or asset group signal in an (enabled or paused) ad group or campaign.
Implementations§
source§impl AudienceError
impl AudienceError
source§impl AudienceError
impl AudienceError
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 AudienceError
impl Clone for AudienceError
source§fn clone(&self) -> AudienceError
fn clone(&self) -> AudienceError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AudienceError
impl Debug for AudienceError
source§impl Default for AudienceError
impl Default for AudienceError
source§fn default() -> AudienceError
fn default() -> AudienceError
source§impl From<AudienceError> for i32
impl From<AudienceError> for i32
source§fn from(value: AudienceError) -> i32
fn from(value: AudienceError) -> i32
source§impl Hash for AudienceError
impl Hash for AudienceError
source§impl Ord for AudienceError
impl Ord for AudienceError
source§fn cmp(&self, other: &AudienceError) -> Ordering
fn cmp(&self, other: &AudienceError) -> 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 AudienceError
impl PartialEq for AudienceError
source§fn eq(&self, other: &AudienceError) -> bool
fn eq(&self, other: &AudienceError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AudienceError
impl PartialOrd for AudienceError
source§fn partial_cmp(&self, other: &AudienceError) -> Option<Ordering>
fn partial_cmp(&self, other: &AudienceError) -> 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 AudienceError
impl TryFrom<i32> for AudienceError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<AudienceError, DecodeError>
fn try_from(value: i32) -> Result<AudienceError, DecodeError>
impl Copy for AudienceError
impl Eq for AudienceError
impl StructuralPartialEq for AudienceError
Auto Trait Implementations§
impl Freeze for AudienceError
impl RefUnwindSafe for AudienceError
impl Send for AudienceError
impl Sync for AudienceError
impl Unpin for AudienceError
impl UnwindSafe for AudienceError
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