Enum google_api_proto::google::ads::googleads::v15::errors::conversion_value_rule_error_enum::ConversionValueRuleError
source · #[repr(i32)]pub enum ConversionValueRuleError {
Show 14 variants
Unspecified = 0,
Unknown = 1,
InvalidGeoTargetConstant = 2,
ConflictingIncludedAndExcludedGeoTarget = 3,
ConflictingConditions = 4,
CannotRemoveIfIncludedInValueRuleSet = 5,
ConditionNotAllowed = 6,
FieldMustBeUnset = 7,
CannotPauseUnlessValueRuleSetIsPaused = 8,
UntargetableGeoTarget = 9,
InvalidAudienceUserList = 10,
InaccessibleUserList = 11,
InvalidAudienceUserInterest = 12,
CannotAddRuleWithStatusRemoved = 13,
}
Expand description
Enum describing possible conversion value rule errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
InvalidGeoTargetConstant = 2
The value rule’s geo location condition contains invalid geo target constant(s), for example, there’s no matching geo target.
ConflictingIncludedAndExcludedGeoTarget = 3
The value rule’s geo location condition contains conflicting included and excluded geo targets. Specifically, some of the excluded geo target(s) are the same as or contain some of the included geo target(s). For example, the geo location condition includes California but excludes U.S.
ConflictingConditions = 4
User specified conflicting conditions for two value rules in the same value rule set.
CannotRemoveIfIncludedInValueRuleSet = 5
The value rule cannot be removed because it’s still included in some value rule set.
ConditionNotAllowed = 6
The value rule contains a condition that’s not allowed by the value rule set including this value rule.
FieldMustBeUnset = 7
The value rule contains a field that should be unset.
CannotPauseUnlessValueRuleSetIsPaused = 8
Pausing the value rule requires pausing the value rule set because the value rule is (one of) the last enabled in the value rule set.
UntargetableGeoTarget = 9
The value rule’s geo location condition contains untargetable geo target constant(s).
InvalidAudienceUserList = 10
The value rule’s audience condition contains invalid user list(s). In another word, there’s no matching user list.
InaccessibleUserList = 11
The value rule’s audience condition contains inaccessible user list(s).
InvalidAudienceUserInterest = 12
The value rule’s audience condition contains invalid user_interest(s). This might be because there is no matching user interest, or the user interest is not visible.
CannotAddRuleWithStatusRemoved = 13
When a value rule is created, it shouldn’t have REMOVED status.
Implementations§
source§impl ConversionValueRuleError
impl ConversionValueRuleError
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ConversionValueRuleError
.
sourcepub fn from_i32(value: i32) -> Option<ConversionValueRuleError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ConversionValueRuleError>
Converts an i32
to a ConversionValueRuleError
, or None
if value
is not a valid variant.
source§impl ConversionValueRuleError
impl ConversionValueRuleError
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 ConversionValueRuleError
impl Clone for ConversionValueRuleError
source§fn clone(&self) -> ConversionValueRuleError
fn clone(&self) -> ConversionValueRuleError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConversionValueRuleError
impl Debug for ConversionValueRuleError
source§impl Default for ConversionValueRuleError
impl Default for ConversionValueRuleError
source§fn default() -> ConversionValueRuleError
fn default() -> ConversionValueRuleError
source§impl From<ConversionValueRuleError> for i32
impl From<ConversionValueRuleError> for i32
source§fn from(value: ConversionValueRuleError) -> i32
fn from(value: ConversionValueRuleError) -> i32
source§impl Hash for ConversionValueRuleError
impl Hash for ConversionValueRuleError
source§impl Ord for ConversionValueRuleError
impl Ord for ConversionValueRuleError
source§fn cmp(&self, other: &ConversionValueRuleError) -> Ordering
fn cmp(&self, other: &ConversionValueRuleError) -> 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 ConversionValueRuleError
impl PartialEq for ConversionValueRuleError
source§fn eq(&self, other: &ConversionValueRuleError) -> bool
fn eq(&self, other: &ConversionValueRuleError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConversionValueRuleError
impl PartialOrd for ConversionValueRuleError
source§fn partial_cmp(&self, other: &ConversionValueRuleError) -> Option<Ordering>
fn partial_cmp(&self, other: &ConversionValueRuleError) -> 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 ConversionValueRuleError
impl TryFrom<i32> for ConversionValueRuleError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<ConversionValueRuleError, DecodeError>
fn try_from(value: i32) -> Result<ConversionValueRuleError, DecodeError>
impl Copy for ConversionValueRuleError
impl Eq for ConversionValueRuleError
impl StructuralPartialEq for ConversionValueRuleError
Auto Trait Implementations§
impl Freeze for ConversionValueRuleError
impl RefUnwindSafe for ConversionValueRuleError
impl Send for ConversionValueRuleError
impl Sync for ConversionValueRuleError
impl Unpin for ConversionValueRuleError
impl UnwindSafe for ConversionValueRuleError
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