pub struct CustomerConversionGoal {
pub resource_name: String,
pub category: i32,
pub origin: i32,
pub biddable: bool,
}
Expand description
Biddability control for conversion actions with a matching category and origin.
Fields§
§resource_name: String
Immutable. The resource name of the customer conversion goal. Customer conversion goal resource names have the form:
customers/{customer_id}/customerConversionGoals/{category}~{origin}
category: i32
The conversion category of this customer conversion goal. Only conversion actions that have this category will be included in this goal.
origin: i32
The conversion origin of this customer conversion goal. Only conversion actions that have this conversion origin will be included in this goal.
biddable: bool
The biddability of the customer conversion goal.
Implementations§
Source§impl CustomerConversionGoal
impl CustomerConversionGoal
Sourcepub fn category(&self) -> ConversionActionCategory
pub fn category(&self) -> ConversionActionCategory
Returns the enum value of category
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_category(&mut self, value: ConversionActionCategory)
pub fn set_category(&mut self, value: ConversionActionCategory)
Sets category
to the provided enum value.
Sourcepub fn origin(&self) -> ConversionOrigin
pub fn origin(&self) -> ConversionOrigin
Returns the enum value of origin
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_origin(&mut self, value: ConversionOrigin)
pub fn set_origin(&mut self, value: ConversionOrigin)
Sets origin
to the provided enum value.
Trait Implementations§
Source§impl Clone for CustomerConversionGoal
impl Clone for CustomerConversionGoal
Source§fn clone(&self) -> CustomerConversionGoal
fn clone(&self) -> CustomerConversionGoal
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CustomerConversionGoal
impl Debug for CustomerConversionGoal
Source§impl Default for CustomerConversionGoal
impl Default for CustomerConversionGoal
Source§impl Message for CustomerConversionGoal
impl Message for CustomerConversionGoal
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 CustomerConversionGoal
impl PartialEq for CustomerConversionGoal
impl StructuralPartialEq for CustomerConversionGoal
Auto Trait Implementations§
impl Freeze for CustomerConversionGoal
impl RefUnwindSafe for CustomerConversionGoal
impl Send for CustomerConversionGoal
impl Sync for CustomerConversionGoal
impl Unpin for CustomerConversionGoal
impl UnwindSafe for CustomerConversionGoal
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