#[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 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§impl PartialOrd for CampaignDraftStatus
impl PartialOrd for CampaignDraftStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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