Enum google_api_proto::google::ads::googleads::v15::enums::asset_link_primary_status_reason_enum::AssetLinkPrimaryStatusReason
source · #[repr(i32)]pub enum AssetLinkPrimaryStatusReason {
Unspecified = 0,
Unknown = 1,
AssetLinkPaused = 2,
AssetLinkRemoved = 3,
AssetDisapproved = 4,
AssetUnderReview = 5,
AssetApprovedLabeled = 6,
}
Expand description
Enum Provides insight into why an asset is not serving or not serving at full capacity for a particular link level. These reasons are aggregated to determine a final PrimaryStatus. For example, a sitelink might be paused by the user, but also limited in serving due to violation of an alcohol policy. In this case, the PrimaryStatus will be returned as PAUSED, since the asset’s effective status is determined by its paused state.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
AssetLinkPaused = 2
The asset is paused for its linked rollup level. Contributes to a PrimaryStatus of PAUSED.
AssetLinkRemoved = 3
The asset is removed for its linked rollup level. Contributes to a PrimaryStatus of REMOVED.
AssetDisapproved = 4
The asset has been marked as disapproved. Contributes to a PrimaryStatus of NOT_ELIGIBLE
AssetUnderReview = 5
The asset has not completed policy review. Contributes to a PrimaryStatus of PENDING.
AssetApprovedLabeled = 6
The asset is approved with policies applied. Contributes to a PrimaryStatus of LIMITED.
Implementations§
source§impl AssetLinkPrimaryStatusReason
impl AssetLinkPrimaryStatusReason
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of AssetLinkPrimaryStatusReason
.
sourcepub fn from_i32(value: i32) -> Option<AssetLinkPrimaryStatusReason>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<AssetLinkPrimaryStatusReason>
Converts an i32
to a AssetLinkPrimaryStatusReason
, or None
if value
is not a valid variant.
source§impl AssetLinkPrimaryStatusReason
impl AssetLinkPrimaryStatusReason
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 AssetLinkPrimaryStatusReason
impl Clone for AssetLinkPrimaryStatusReason
source§fn clone(&self) -> AssetLinkPrimaryStatusReason
fn clone(&self) -> AssetLinkPrimaryStatusReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssetLinkPrimaryStatusReason
impl Debug for AssetLinkPrimaryStatusReason
source§impl Default for AssetLinkPrimaryStatusReason
impl Default for AssetLinkPrimaryStatusReason
source§fn default() -> AssetLinkPrimaryStatusReason
fn default() -> AssetLinkPrimaryStatusReason
source§impl From<AssetLinkPrimaryStatusReason> for i32
impl From<AssetLinkPrimaryStatusReason> for i32
source§fn from(value: AssetLinkPrimaryStatusReason) -> i32
fn from(value: AssetLinkPrimaryStatusReason) -> i32
source§impl Hash for AssetLinkPrimaryStatusReason
impl Hash for AssetLinkPrimaryStatusReason
source§impl Ord for AssetLinkPrimaryStatusReason
impl Ord for AssetLinkPrimaryStatusReason
source§fn cmp(&self, other: &AssetLinkPrimaryStatusReason) -> Ordering
fn cmp(&self, other: &AssetLinkPrimaryStatusReason) -> 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 AssetLinkPrimaryStatusReason
impl PartialEq for AssetLinkPrimaryStatusReason
source§fn eq(&self, other: &AssetLinkPrimaryStatusReason) -> bool
fn eq(&self, other: &AssetLinkPrimaryStatusReason) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AssetLinkPrimaryStatusReason
impl PartialOrd for AssetLinkPrimaryStatusReason
source§fn partial_cmp(&self, other: &AssetLinkPrimaryStatusReason) -> Option<Ordering>
fn partial_cmp(&self, other: &AssetLinkPrimaryStatusReason) -> 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 AssetLinkPrimaryStatusReason
impl TryFrom<i32> for AssetLinkPrimaryStatusReason
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<AssetLinkPrimaryStatusReason, DecodeError>
fn try_from(value: i32) -> Result<AssetLinkPrimaryStatusReason, DecodeError>
impl Copy for AssetLinkPrimaryStatusReason
impl Eq for AssetLinkPrimaryStatusReason
impl StructuralPartialEq for AssetLinkPrimaryStatusReason
Auto Trait Implementations§
impl Freeze for AssetLinkPrimaryStatusReason
impl RefUnwindSafe for AssetLinkPrimaryStatusReason
impl Send for AssetLinkPrimaryStatusReason
impl Sync for AssetLinkPrimaryStatusReason
impl Unpin for AssetLinkPrimaryStatusReason
impl UnwindSafe for AssetLinkPrimaryStatusReason
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