Enum google_api_proto::google::ads::googleads::v14::errors::function_error_enum::FunctionError
source · #[repr(i32)]pub enum FunctionError {
Show 18 variants
Unspecified = 0,
Unknown = 1,
InvalidFunctionFormat = 2,
DataTypeMismatch = 3,
InvalidConjunctionOperands = 4,
InvalidNumberOfOperands = 5,
InvalidOperandType = 6,
InvalidOperator = 7,
InvalidRequestContextType = 8,
InvalidFunctionForCallPlaceholder = 9,
InvalidFunctionForPlaceholder = 10,
InvalidOperand = 11,
MissingConstantOperandValue = 12,
InvalidConstantOperandValue = 13,
InvalidNesting = 14,
MultipleFeedIdsNotSupported = 15,
InvalidFunctionForFeedWithFixedSchema = 16,
InvalidAttributeName = 17,
}
Expand description
Enum describing possible function errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
InvalidFunctionFormat = 2
The format of the function is not recognized as a supported function format.
DataTypeMismatch = 3
Operand data types do not match.
InvalidConjunctionOperands = 4
The operands cannot be used together in a conjunction.
InvalidNumberOfOperands = 5
Invalid numer of Operands.
InvalidOperandType = 6
Operand Type not supported.
InvalidOperator = 7
Operator not supported.
InvalidRequestContextType = 8
Request context type not supported.
InvalidFunctionForCallPlaceholder = 9
The matching function is not allowed for call placeholders
InvalidFunctionForPlaceholder = 10
The matching function is not allowed for the specified placeholder
InvalidOperand = 11
Invalid operand.
MissingConstantOperandValue = 12
Missing value for the constant operand.
InvalidConstantOperandValue = 13
The value of the constant operand is invalid.
InvalidNesting = 14
Invalid function nesting.
MultipleFeedIdsNotSupported = 15
The Feed ID was different from another Feed ID in the same function.
InvalidFunctionForFeedWithFixedSchema = 16
The matching function is invalid for use with a feed with a fixed schema.
InvalidAttributeName = 17
Invalid attribute name.
Implementations§
source§impl FunctionError
impl FunctionError
source§impl FunctionError
impl FunctionError
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 FunctionError
impl Clone for FunctionError
source§fn clone(&self) -> FunctionError
fn clone(&self) -> FunctionError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionError
impl Debug for FunctionError
source§impl Default for FunctionError
impl Default for FunctionError
source§fn default() -> FunctionError
fn default() -> FunctionError
source§impl From<FunctionError> for i32
impl From<FunctionError> for i32
source§fn from(value: FunctionError) -> i32
fn from(value: FunctionError) -> i32
source§impl Hash for FunctionError
impl Hash for FunctionError
source§impl Ord for FunctionError
impl Ord for FunctionError
source§fn cmp(&self, other: &FunctionError) -> Ordering
fn cmp(&self, other: &FunctionError) -> 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 FunctionError
impl PartialEq for FunctionError
source§fn eq(&self, other: &FunctionError) -> bool
fn eq(&self, other: &FunctionError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FunctionError
impl PartialOrd for FunctionError
source§fn partial_cmp(&self, other: &FunctionError) -> Option<Ordering>
fn partial_cmp(&self, other: &FunctionError) -> 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 FunctionError
impl TryFrom<i32> for FunctionError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<FunctionError, DecodeError>
fn try_from(value: i32) -> Result<FunctionError, DecodeError>
impl Copy for FunctionError
impl Eq for FunctionError
impl StructuralPartialEq for FunctionError
Auto Trait Implementations§
impl Freeze for FunctionError
impl RefUnwindSafe for FunctionError
impl Send for FunctionError
impl Sync for FunctionError
impl Unpin for FunctionError
impl UnwindSafe for FunctionError
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