Enum google_api_proto::google::ads::googleads::v15::errors::function_parsing_error_enum::FunctionParsingError
source · #[repr(i32)]pub enum FunctionParsingError {
Show 13 variants
Unspecified = 0,
Unknown = 1,
NoMoreInput = 2,
ExpectedCharacter = 3,
UnexpectedSeparator = 4,
UnmatchedLeftBracket = 5,
UnmatchedRightBracket = 6,
TooManyNestedFunctions = 7,
MissingRightHandOperand = 8,
InvalidOperatorName = 9,
FeedAttributeOperandArgumentNotInteger = 10,
NoOperands = 11,
TooManyOperands = 12,
}
Expand description
Enum describing possible function parsing errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
NoMoreInput = 2
Unexpected end of function string.
ExpectedCharacter = 3
Could not find an expected character.
UnexpectedSeparator = 4
Unexpected separator character.
UnmatchedLeftBracket = 5
Unmatched left bracket or parenthesis.
UnmatchedRightBracket = 6
Unmatched right bracket or parenthesis.
TooManyNestedFunctions = 7
Functions are nested too deeply.
MissingRightHandOperand = 8
Missing right-hand-side operand.
InvalidOperatorName = 9
Invalid operator/function name.
FeedAttributeOperandArgumentNotInteger = 10
Feed attribute operand’s argument is not an integer.
NoOperands = 11
Missing function operands.
TooManyOperands = 12
Function had too many operands.
Implementations§
source§impl FunctionParsingError
impl FunctionParsingError
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of FunctionParsingError
.
sourcepub fn from_i32(value: i32) -> Option<FunctionParsingError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<FunctionParsingError>
Converts an i32
to a FunctionParsingError
, or None
if value
is not a valid variant.
source§impl FunctionParsingError
impl FunctionParsingError
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 FunctionParsingError
impl Clone for FunctionParsingError
source§fn clone(&self) -> FunctionParsingError
fn clone(&self) -> FunctionParsingError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionParsingError
impl Debug for FunctionParsingError
source§impl Default for FunctionParsingError
impl Default for FunctionParsingError
source§fn default() -> FunctionParsingError
fn default() -> FunctionParsingError
source§impl From<FunctionParsingError> for i32
impl From<FunctionParsingError> for i32
source§fn from(value: FunctionParsingError) -> i32
fn from(value: FunctionParsingError) -> i32
source§impl Hash for FunctionParsingError
impl Hash for FunctionParsingError
source§impl Ord for FunctionParsingError
impl Ord for FunctionParsingError
source§fn cmp(&self, other: &FunctionParsingError) -> Ordering
fn cmp(&self, other: &FunctionParsingError) -> 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 FunctionParsingError
impl PartialEq for FunctionParsingError
source§fn eq(&self, other: &FunctionParsingError) -> bool
fn eq(&self, other: &FunctionParsingError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FunctionParsingError
impl PartialOrd for FunctionParsingError
source§fn partial_cmp(&self, other: &FunctionParsingError) -> Option<Ordering>
fn partial_cmp(&self, other: &FunctionParsingError) -> 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 FunctionParsingError
impl TryFrom<i32> for FunctionParsingError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<FunctionParsingError, DecodeError>
fn try_from(value: i32) -> Result<FunctionParsingError, DecodeError>
impl Copy for FunctionParsingError
impl Eq for FunctionParsingError
impl StructuralPartialEq for FunctionParsingError
Auto Trait Implementations§
impl Freeze for FunctionParsingError
impl RefUnwindSafe for FunctionParsingError
impl Send for FunctionParsingError
impl Sync for FunctionParsingError
impl Unpin for FunctionParsingError
impl UnwindSafe for FunctionParsingError
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