Struct google_api_proto::google::ads::googleads::v17::resources::ConversionValueRule
source · pub struct ConversionValueRule {
pub resource_name: String,
pub id: i64,
pub action: Option<ValueRuleAction>,
pub geo_location_condition: Option<ValueRuleGeoLocationCondition>,
pub device_condition: Option<ValueRuleDeviceCondition>,
pub audience_condition: Option<ValueRuleAudienceCondition>,
pub owner_customer: String,
pub status: i32,
}
Expand description
A conversion value rule
Fields§
§resource_name: String
Immutable. The resource name of the conversion value rule. Conversion value rule resource names have the form:
customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}
id: i64
Output only. The ID of the conversion value rule.
action: Option<ValueRuleAction>
Action applied when the rule is triggered.
geo_location_condition: Option<ValueRuleGeoLocationCondition>
Condition for Geo location that must be satisfied for the value rule to apply.
device_condition: Option<ValueRuleDeviceCondition>
Condition for device type that must be satisfied for the value rule to apply.
audience_condition: Option<ValueRuleAudienceCondition>
Condition for audience that must be satisfied for the value rule to apply.
owner_customer: String
Output only. The resource name of the conversion value rule’s owner customer. When the value rule is inherited from a manager customer, owner_customer will be the resource name of the manager whereas the customer in the resource_name will be of the requesting serving customer. ** Read-only **
status: i32
The status of the conversion value rule.
Implementations§
source§impl ConversionValueRule
impl ConversionValueRule
sourcepub fn status(&self) -> ConversionValueRuleStatus
pub fn status(&self) -> ConversionValueRuleStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: ConversionValueRuleStatus)
pub fn set_status(&mut self, value: ConversionValueRuleStatus)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Clone for ConversionValueRule
impl Clone for ConversionValueRule
source§fn clone(&self) -> ConversionValueRule
fn clone(&self) -> ConversionValueRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConversionValueRule
impl Debug for ConversionValueRule
source§impl Default for ConversionValueRule
impl Default for ConversionValueRule
source§impl Message for ConversionValueRule
impl Message for ConversionValueRule
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 ConversionValueRule
impl PartialEq for ConversionValueRule
source§fn eq(&self, other: &ConversionValueRule) -> bool
fn eq(&self, other: &ConversionValueRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConversionValueRule
Auto Trait Implementations§
impl Freeze for ConversionValueRule
impl RefUnwindSafe for ConversionValueRule
impl Send for ConversionValueRule
impl Sync for ConversionValueRule
impl Unpin for ConversionValueRule
impl UnwindSafe for ConversionValueRule
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