Enum google_api_proto::google::ads::admanager::v1::company_credit_status_enum::CompanyCreditStatus
source · #[repr(i32)]pub enum CompanyCreditStatus {
Unspecified = 0,
Active = 1,
Inactive = 2,
OnHold = 3,
Stop = 4,
Blocked = 5,
}
Expand description
The credit status of a company.
Credit statuses specify the credit-worthiness of a company and affect the ad serving of campaigns belonging to the company.
In basic settings, only the [ACTIVE][google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus.ACTIVE] and [INACTIVE][google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus.INACTIVE] credit statuses are applicable. In advance settings, all credit statuses are applicable.
Variants§
Unspecified = 0
No value specified
Active = 1
The company’s credit status is active.
Line items belonging to the company can serve.
This credit status is the default for basic settings and is available in both basic and advance settings.
Inactive = 2
The company’s credit status is inactive.
Line items belonging to the company cannot be activated. However, line items that were activated before the credit status changed will remain active. New orders or line items belonging to the company cannot be created.
Companies with this credit status will be hidden by default in company search results.
This credit status is available in both basic and advance settings.
OnHold = 3
The company’s credit status is on hold.
Line items belonging to the company cannot be activated. However, line items that were activated before the credit status changed will remain active. New orders or line items belonging to the company can be created.
This credit status is the default in advance settings and is only available in advance settings.
Stop = 4
The company’s credit status is stopped.
Line items belonging to the company cannot be activated. However, line items that were activated before the credit status changed will remain active. New orders or line items belonging to the company cannot be created.
This credit status is only available in advance settings.
Blocked = 5
The company’s credit status is blocked.
All active line items belonging to the company will stop serving with immediate effect. Line items belonging to the company cannot be activated, and new orders or line items belonging to the company cannot be created.
This credit status is only available in advance settings.
Implementations§
source§impl CompanyCreditStatus
impl CompanyCreditStatus
sourcepub fn from_i32(value: i32) -> Option<CompanyCreditStatus>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CompanyCreditStatus>
Converts an i32
to a CompanyCreditStatus
, or None
if value
is not a valid variant.
source§impl CompanyCreditStatus
impl CompanyCreditStatus
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 CompanyCreditStatus
impl Clone for CompanyCreditStatus
source§fn clone(&self) -> CompanyCreditStatus
fn clone(&self) -> CompanyCreditStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompanyCreditStatus
impl Debug for CompanyCreditStatus
source§impl Default for CompanyCreditStatus
impl Default for CompanyCreditStatus
source§fn default() -> CompanyCreditStatus
fn default() -> CompanyCreditStatus
source§impl From<CompanyCreditStatus> for i32
impl From<CompanyCreditStatus> for i32
source§fn from(value: CompanyCreditStatus) -> i32
fn from(value: CompanyCreditStatus) -> i32
source§impl Hash for CompanyCreditStatus
impl Hash for CompanyCreditStatus
source§impl Ord for CompanyCreditStatus
impl Ord for CompanyCreditStatus
source§fn cmp(&self, other: &CompanyCreditStatus) -> Ordering
fn cmp(&self, other: &CompanyCreditStatus) -> 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 CompanyCreditStatus
impl PartialEq for CompanyCreditStatus
source§fn eq(&self, other: &CompanyCreditStatus) -> bool
fn eq(&self, other: &CompanyCreditStatus) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompanyCreditStatus
impl PartialOrd for CompanyCreditStatus
source§fn partial_cmp(&self, other: &CompanyCreditStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &CompanyCreditStatus) -> 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 CompanyCreditStatus
impl TryFrom<i32> for CompanyCreditStatus
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<CompanyCreditStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<CompanyCreditStatus, UnknownEnumValue>
impl Copy for CompanyCreditStatus
impl Eq for CompanyCreditStatus
impl StructuralPartialEq for CompanyCreditStatus
Auto Trait Implementations§
impl Freeze for CompanyCreditStatus
impl RefUnwindSafe for CompanyCreditStatus
impl Send for CompanyCreditStatus
impl Sync for CompanyCreditStatus
impl Unpin for CompanyCreditStatus
impl UnwindSafe for CompanyCreditStatus
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