Enum google_api_proto::google::ads::googleads::v15::errors::campaign_draft_error_enum::CampaignDraftError
source · #[repr(i32)]pub enum CampaignDraftError {
Unspecified = 0,
Unknown = 1,
DuplicateDraftName = 2,
InvalidStatusTransitionFromRemoved = 3,
InvalidStatusTransitionFromPromoted = 4,
InvalidStatusTransitionFromPromoteFailed = 5,
CustomerCannotCreateDraft = 6,
CampaignCannotCreateDraft = 7,
InvalidDraftChange = 8,
InvalidStatusTransition = 9,
MaxNumberOfDraftsPerCampaignReached = 10,
ListErrorsForPromotedDraftOnly = 11,
}
Expand description
Enum describing possible campaign draft errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
DuplicateDraftName = 2
A draft with this name already exists for this campaign.
InvalidStatusTransitionFromRemoved = 3
The draft is removed and cannot be transitioned to another status.
InvalidStatusTransitionFromPromoted = 4
The draft has been promoted and cannot be transitioned to the specified status.
InvalidStatusTransitionFromPromoteFailed = 5
The draft has failed to be promoted and cannot be transitioned to the specified status.
CustomerCannotCreateDraft = 6
This customer is not allowed to create drafts.
CampaignCannotCreateDraft = 7
This campaign is not allowed to create drafts.
InvalidDraftChange = 8
This modification cannot be made on a draft.
InvalidStatusTransition = 9
The draft cannot be transitioned to the specified status from its current status.
MaxNumberOfDraftsPerCampaignReached = 10
The campaign has reached the maximum number of drafts that can be created for a campaign throughout its lifetime. No additional drafts can be created for this campaign. Removed drafts also count towards this limit.
ListErrorsForPromotedDraftOnly = 11
ListAsyncErrors was called without first promoting the draft.
Implementations§
source§impl CampaignDraftError
impl CampaignDraftError
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 CampaignDraftError
impl Clone for CampaignDraftError
source§fn clone(&self) -> CampaignDraftError
fn clone(&self) -> CampaignDraftError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignDraftError
impl Debug for CampaignDraftError
source§impl Default for CampaignDraftError
impl Default for CampaignDraftError
source§fn default() -> CampaignDraftError
fn default() -> CampaignDraftError
source§impl From<CampaignDraftError> for i32
impl From<CampaignDraftError> for i32
source§fn from(value: CampaignDraftError) -> i32
fn from(value: CampaignDraftError) -> i32
source§impl Hash for CampaignDraftError
impl Hash for CampaignDraftError
source§impl Ord for CampaignDraftError
impl Ord for CampaignDraftError
source§fn cmp(&self, other: &CampaignDraftError) -> Ordering
fn cmp(&self, other: &CampaignDraftError) -> 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 CampaignDraftError
impl PartialEq for CampaignDraftError
source§fn eq(&self, other: &CampaignDraftError) -> bool
fn eq(&self, other: &CampaignDraftError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CampaignDraftError
impl PartialOrd for CampaignDraftError
source§fn partial_cmp(&self, other: &CampaignDraftError) -> Option<Ordering>
fn partial_cmp(&self, other: &CampaignDraftError) -> 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 CampaignDraftError
impl TryFrom<i32> for CampaignDraftError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CampaignDraftError, DecodeError>
fn try_from(value: i32) -> Result<CampaignDraftError, DecodeError>
impl Copy for CampaignDraftError
impl Eq for CampaignDraftError
impl StructuralPartialEq for CampaignDraftError
Auto Trait Implementations§
impl Freeze for CampaignDraftError
impl RefUnwindSafe for CampaignDraftError
impl Send for CampaignDraftError
impl Sync for CampaignDraftError
impl Unpin for CampaignDraftError
impl UnwindSafe for CampaignDraftError
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