Enum google_api_proto::google::ads::googleads::v14::errors::mutate_error_enum::MutateError
source · #[repr(i32)]pub enum MutateError {
Unspecified = 0,
Unknown = 1,
ResourceNotFound = 3,
IdExistsInMultipleMutates = 7,
InconsistentFieldValues = 8,
MutateNotAllowed = 9,
ResourceNotInGoogleAds = 10,
ResourceAlreadyExists = 11,
ResourceDoesNotSupportValidateOnly = 12,
OperationDoesNotSupportPartialFailure = 16,
ResourceReadOnly = 13,
}
Expand description
Enum describing possible mutate errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
ResourceNotFound = 3
Requested resource was not found.
IdExistsInMultipleMutates = 7
Cannot mutate the same resource twice in one request.
InconsistentFieldValues = 8
The field’s contents don’t match another field that represents the same data.
MutateNotAllowed = 9
Mutates are not allowed for the requested resource.
ResourceNotInGoogleAds = 10
The resource isn’t in Google Ads. It belongs to another ads system.
ResourceAlreadyExists = 11
The resource being created already exists.
ResourceDoesNotSupportValidateOnly = 12
This resource cannot be used with “validate_only”.
OperationDoesNotSupportPartialFailure = 16
This operation cannot be used with “partial_failure”.
ResourceReadOnly = 13
Attempt to write to read-only fields.
Implementations§
source§impl MutateError
impl MutateError
source§impl MutateError
impl MutateError
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 MutateError
impl Clone for MutateError
source§fn clone(&self) -> MutateError
fn clone(&self) -> MutateError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MutateError
impl Debug for MutateError
source§impl Default for MutateError
impl Default for MutateError
source§fn default() -> MutateError
fn default() -> MutateError
source§impl From<MutateError> for i32
impl From<MutateError> for i32
source§fn from(value: MutateError) -> i32
fn from(value: MutateError) -> i32
source§impl Hash for MutateError
impl Hash for MutateError
source§impl Ord for MutateError
impl Ord for MutateError
source§fn cmp(&self, other: &MutateError) -> Ordering
fn cmp(&self, other: &MutateError) -> 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 MutateError
impl PartialEq for MutateError
source§fn eq(&self, other: &MutateError) -> bool
fn eq(&self, other: &MutateError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MutateError
impl PartialOrd for MutateError
source§fn partial_cmp(&self, other: &MutateError) -> Option<Ordering>
fn partial_cmp(&self, other: &MutateError) -> 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 MutateError
impl TryFrom<i32> for MutateError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<MutateError, DecodeError>
fn try_from(value: i32) -> Result<MutateError, DecodeError>
impl Copy for MutateError
impl Eq for MutateError
impl StructuralPartialEq for MutateError
Auto Trait Implementations§
impl Freeze for MutateError
impl RefUnwindSafe for MutateError
impl Send for MutateError
impl Sync for MutateError
impl Unpin for MutateError
impl UnwindSafe for MutateError
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