Enum google_api_proto::google::ads::googleads::v15::enums::campaign_draft_status_enum::CampaignDraftStatus
source · #[repr(i32)]pub enum CampaignDraftStatus {
Unspecified = 0,
Unknown = 1,
Proposed = 2,
Removed = 3,
Promoting = 5,
Promoted = 4,
PromoteFailed = 6,
}
Expand description
Possible statuses of a campaign draft.
Variants§
Unspecified = 0
The status has not been specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
Proposed = 2
Initial state of the draft, the advertiser can start adding changes with no effect on serving.
Removed = 3
The campaign draft is removed.
Promoting = 5
Advertiser requested to promote draft’s changes back into the original campaign. Advertiser can poll the long running operation returned by the promote action to see the status of the promotion.
Promoted = 4
The process to merge changes in the draft back to the original campaign has completed successfully.
PromoteFailed = 6
The promotion failed after it was partially applied. Promote cannot be attempted again safely, so the issue must be corrected in the original campaign.
Implementations§
source§impl CampaignDraftStatus
impl CampaignDraftStatus
sourcepub fn from_i32(value: i32) -> Option<CampaignDraftStatus>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CampaignDraftStatus>
Converts an i32
to a CampaignDraftStatus
, or None
if value
is not a valid variant.
source§impl CampaignDraftStatus
impl CampaignDraftStatus
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 CampaignDraftStatus
impl Clone for CampaignDraftStatus
source§fn clone(&self) -> CampaignDraftStatus
fn clone(&self) -> CampaignDraftStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignDraftStatus
impl Debug for CampaignDraftStatus
source§impl Default for CampaignDraftStatus
impl Default for CampaignDraftStatus
source§fn default() -> CampaignDraftStatus
fn default() -> CampaignDraftStatus
source§impl From<CampaignDraftStatus> for i32
impl From<CampaignDraftStatus> for i32
source§fn from(value: CampaignDraftStatus) -> i32
fn from(value: CampaignDraftStatus) -> i32
source§impl Hash for CampaignDraftStatus
impl Hash for CampaignDraftStatus
source§impl Ord for CampaignDraftStatus
impl Ord for CampaignDraftStatus
source§fn cmp(&self, other: &CampaignDraftStatus) -> Ordering
fn cmp(&self, other: &CampaignDraftStatus) -> 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 CampaignDraftStatus
impl PartialEq for CampaignDraftStatus
source§fn eq(&self, other: &CampaignDraftStatus) -> bool
fn eq(&self, other: &CampaignDraftStatus) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CampaignDraftStatus
impl PartialOrd for CampaignDraftStatus
source§fn partial_cmp(&self, other: &CampaignDraftStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &CampaignDraftStatus) -> 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 CampaignDraftStatus
impl TryFrom<i32> for CampaignDraftStatus
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<CampaignDraftStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<CampaignDraftStatus, UnknownEnumValue>
impl Copy for CampaignDraftStatus
impl Eq for CampaignDraftStatus
impl StructuralPartialEq for CampaignDraftStatus
Auto Trait Implementations§
impl Freeze for CampaignDraftStatus
impl RefUnwindSafe for CampaignDraftStatus
impl Send for CampaignDraftStatus
impl Sync for CampaignDraftStatus
impl Unpin for CampaignDraftStatus
impl UnwindSafe for CampaignDraftStatus
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