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 itinerary_condition: Option<ValueRuleItineraryCondition>,
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.
itinerary_condition: Option<ValueRuleItineraryCondition>
Condition for itinerary 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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for ConversionValueRule
impl PartialEq for ConversionValueRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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