Enum google_api_proto::google::ads::googleads::v14::errors::feed_item_target_error_enum::FeedItemTargetError
source · #[repr(i32)]pub enum FeedItemTargetError {
Unspecified = 0,
Unknown = 1,
MustSetTargetOneofOnCreate = 2,
FeedItemTargetAlreadyExists = 3,
FeedItemSchedulesCannotOverlap = 4,
TargetLimitExceededForGivenType = 5,
TooManySchedulesPerDay = 6,
CannotHaveEnabledCampaignAndEnabledAdGroupTargets = 7,
DuplicateAdSchedule = 8,
DuplicateKeyword = 9,
}
Expand description
Enum describing possible feed item target errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
MustSetTargetOneofOnCreate = 2
On CREATE, the FeedItemTarget must have a populated field in the oneof target.
FeedItemTargetAlreadyExists = 3
The specified feed item target already exists, so it cannot be added.
FeedItemSchedulesCannotOverlap = 4
The schedules for a given feed item cannot overlap.
TargetLimitExceededForGivenType = 5
Too many targets of a given type were added for a single feed item.
TooManySchedulesPerDay = 6
Too many AdSchedules are enabled for the feed item for the given day.
CannotHaveEnabledCampaignAndEnabledAdGroupTargets = 7
A feed item may either have an enabled campaign target or an enabled ad group target.
DuplicateAdSchedule = 8
Duplicate ad schedules aren’t allowed.
DuplicateKeyword = 9
Duplicate keywords aren’t allowed.
Implementations§
source§impl FeedItemTargetError
impl FeedItemTargetError
sourcepub fn from_i32(value: i32) -> Option<FeedItemTargetError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<FeedItemTargetError>
Converts an i32
to a FeedItemTargetError
, or None
if value
is not a valid variant.
source§impl FeedItemTargetError
impl FeedItemTargetError
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 FeedItemTargetError
impl Clone for FeedItemTargetError
source§fn clone(&self) -> FeedItemTargetError
fn clone(&self) -> FeedItemTargetError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FeedItemTargetError
impl Debug for FeedItemTargetError
source§impl Default for FeedItemTargetError
impl Default for FeedItemTargetError
source§fn default() -> FeedItemTargetError
fn default() -> FeedItemTargetError
source§impl From<FeedItemTargetError> for i32
impl From<FeedItemTargetError> for i32
source§fn from(value: FeedItemTargetError) -> i32
fn from(value: FeedItemTargetError) -> i32
source§impl Hash for FeedItemTargetError
impl Hash for FeedItemTargetError
source§impl Ord for FeedItemTargetError
impl Ord for FeedItemTargetError
source§fn cmp(&self, other: &FeedItemTargetError) -> Ordering
fn cmp(&self, other: &FeedItemTargetError) -> 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 FeedItemTargetError
impl PartialEq for FeedItemTargetError
source§fn eq(&self, other: &FeedItemTargetError) -> bool
fn eq(&self, other: &FeedItemTargetError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FeedItemTargetError
impl PartialOrd for FeedItemTargetError
source§fn partial_cmp(&self, other: &FeedItemTargetError) -> Option<Ordering>
fn partial_cmp(&self, other: &FeedItemTargetError) -> 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 FeedItemTargetError
impl TryFrom<i32> for FeedItemTargetError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<FeedItemTargetError, DecodeError>
fn try_from(value: i32) -> Result<FeedItemTargetError, DecodeError>
impl Copy for FeedItemTargetError
impl Eq for FeedItemTargetError
impl StructuralPartialEq for FeedItemTargetError
Auto Trait Implementations§
impl Freeze for FeedItemTargetError
impl RefUnwindSafe for FeedItemTargetError
impl Send for FeedItemTargetError
impl Sync for FeedItemTargetError
impl Unpin for FeedItemTargetError
impl UnwindSafe for FeedItemTargetError
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