Enum google_api_proto::google::ads::googleads::v15::errors::resource_count_limit_exceeded_error_enum::ResourceCountLimitExceededError
source · #[repr(i32)]pub enum ResourceCountLimitExceededError {
Unspecified = 0,
Unknown = 1,
AccountLimit = 2,
CampaignLimit = 3,
AdgroupLimit = 4,
AdGroupAdLimit = 5,
AdGroupCriterionLimit = 6,
SharedSetLimit = 7,
MatchingFunctionLimit = 8,
ResponseRowLimitExceeded = 9,
ResourceLimit = 10,
}
Expand description
Enum describing possible resource count limit exceeded errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
AccountLimit = 2
Indicates that this request would exceed the number of allowed resources for the Google Ads account. The exact resource type and limit being checked can be inferred from accountLimitType.
CampaignLimit = 3
Indicates that this request would exceed the number of allowed resources in a Campaign. The exact resource type and limit being checked can be inferred from accountLimitType, and the numeric id of the Campaign involved is given by enclosingId.
AdgroupLimit = 4
Indicates that this request would exceed the number of allowed resources in an ad group. The exact resource type and limit being checked can be inferred from accountLimitType, and the numeric id of the ad group involved is given by enclosingId.
AdGroupAdLimit = 5
Indicates that this request would exceed the number of allowed resources in an ad group ad. The exact resource type and limit being checked can be inferred from accountLimitType, and the enclosingId contains the ad group id followed by the ad id, separated by a single comma (,).
AdGroupCriterionLimit = 6
Indicates that this request would exceed the number of allowed resources in an ad group criterion. The exact resource type and limit being checked can be inferred from accountLimitType, and the enclosingId contains the ad group id followed by the criterion id, separated by a single comma (,).
Indicates that this request would exceed the number of allowed resources in this shared set. The exact resource type and limit being checked can be inferred from accountLimitType, and the numeric id of the shared set involved is given by enclosingId.
MatchingFunctionLimit = 8
Exceeds a limit related to a matching function.
ResponseRowLimitExceeded = 9
The response for this request would exceed the maximum number of rows that can be returned.
ResourceLimit = 10
This request would exceed a limit on the number of allowed resources. The details of which type of limit was exceeded will eventually be returned in ErrorDetails.
Implementations§
source§impl ResourceCountLimitExceededError
impl ResourceCountLimitExceededError
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ResourceCountLimitExceededError
.
sourcepub fn from_i32(value: i32) -> Option<ResourceCountLimitExceededError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ResourceCountLimitExceededError>
Converts an i32
to a ResourceCountLimitExceededError
, or None
if value
is not a valid variant.
source§impl ResourceCountLimitExceededError
impl ResourceCountLimitExceededError
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 ResourceCountLimitExceededError
impl Clone for ResourceCountLimitExceededError
source§fn clone(&self) -> ResourceCountLimitExceededError
fn clone(&self) -> ResourceCountLimitExceededError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResourceCountLimitExceededError
impl Default for ResourceCountLimitExceededError
source§fn default() -> ResourceCountLimitExceededError
fn default() -> ResourceCountLimitExceededError
source§impl From<ResourceCountLimitExceededError> for i32
impl From<ResourceCountLimitExceededError> for i32
source§fn from(value: ResourceCountLimitExceededError) -> i32
fn from(value: ResourceCountLimitExceededError) -> i32
source§impl Ord for ResourceCountLimitExceededError
impl Ord for ResourceCountLimitExceededError
source§fn cmp(&self, other: &ResourceCountLimitExceededError) -> Ordering
fn cmp(&self, other: &ResourceCountLimitExceededError) -> 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 ResourceCountLimitExceededError
impl PartialEq for ResourceCountLimitExceededError
source§fn eq(&self, other: &ResourceCountLimitExceededError) -> bool
fn eq(&self, other: &ResourceCountLimitExceededError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ResourceCountLimitExceededError
impl PartialOrd for ResourceCountLimitExceededError
source§fn partial_cmp(
&self,
other: &ResourceCountLimitExceededError
) -> Option<Ordering>
fn partial_cmp( &self, other: &ResourceCountLimitExceededError ) -> 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 ResourceCountLimitExceededError
impl TryFrom<i32> for ResourceCountLimitExceededError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<ResourceCountLimitExceededError, DecodeError>
fn try_from(value: i32) -> Result<ResourceCountLimitExceededError, DecodeError>
impl Copy for ResourceCountLimitExceededError
impl Eq for ResourceCountLimitExceededError
impl StructuralPartialEq for ResourceCountLimitExceededError
Auto Trait Implementations§
impl Freeze for ResourceCountLimitExceededError
impl RefUnwindSafe for ResourceCountLimitExceededError
impl Send for ResourceCountLimitExceededError
impl Sync for ResourceCountLimitExceededError
impl Unpin for ResourceCountLimitExceededError
impl UnwindSafe for ResourceCountLimitExceededError
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