Struct google_api_proto::google::ads::googleads::v15::common::MatchingFunction
source · pub struct MatchingFunction {
pub function_string: Option<String>,
pub operator: i32,
pub left_operands: Vec<Operand>,
pub right_operands: Vec<Operand>,
}
Expand description
Matching function associated with a CustomerFeed, CampaignFeed, or AdGroupFeed. The matching function is used to filter the set of feed items selected.
Fields§
§function_string: Option<String>
String representation of the Function.
Examples:
- IDENTITY(true) or IDENTITY(false). All or no feed items served.
- EQUALS(CONTEXT.DEVICE,“Mobile”)
- IN(FEED_ITEM_ID,{1000001,1000002,1000003})
- CONTAINS_ANY(FeedAttribute[12345678,0],{“Mars cruise”,“Venus cruise”})
- AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,“Mobile”))
For more details, visit https://developers.google.com/google-ads/api/docs/extensions/feeds/matching-functions
Note that because multiple strings may represent the same underlying function (whitespace and single versus double quotation marks, for example), the value returned may not be identical to the string sent in a mutate request.
operator: i32
Operator for a function.
left_operands: Vec<Operand>
The operands on the left hand side of the equation. This is also the operand to be used for single operand expressions such as NOT.
right_operands: Vec<Operand>
The operands on the right hand side of the equation.
Implementations§
source§impl MatchingFunction
impl MatchingFunction
sourcepub fn operator(&self) -> MatchingFunctionOperator
pub fn operator(&self) -> MatchingFunctionOperator
Returns the enum value of operator
, or the default if the field is set to an invalid enum value.
sourcepub fn set_operator(&mut self, value: MatchingFunctionOperator)
pub fn set_operator(&mut self, value: MatchingFunctionOperator)
Sets operator
to the provided enum value.
sourcepub fn function_string(&self) -> &str
pub fn function_string(&self) -> &str
Returns the value of function_string
, or the default value if function_string
is unset.
Trait Implementations§
source§impl Clone for MatchingFunction
impl Clone for MatchingFunction
source§fn clone(&self) -> MatchingFunction
fn clone(&self) -> MatchingFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MatchingFunction
impl Debug for MatchingFunction
source§impl Default for MatchingFunction
impl Default for MatchingFunction
source§impl Message for MatchingFunction
impl Message for MatchingFunction
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for MatchingFunction
impl PartialEq for MatchingFunction
source§fn eq(&self, other: &MatchingFunction) -> bool
fn eq(&self, other: &MatchingFunction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MatchingFunction
Auto Trait Implementations§
impl Freeze for MatchingFunction
impl RefUnwindSafe for MatchingFunction
impl Send for MatchingFunction
impl Sync for MatchingFunction
impl Unpin for MatchingFunction
impl UnwindSafe for MatchingFunction
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<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