Struct google_api_proto::google::shopping::merchant::conversions::v1beta::ConversionSource
source · pub struct ConversionSource {
pub name: String,
pub state: i32,
pub expire_time: Option<Timestamp>,
pub controller: i32,
pub source_data: Option<SourceData>,
}
Expand description
Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
Fields§
§name: String
Output only. Identifier. Generated by the Content API upon creation of a
new ConversionSource
. Format: [a-z]{4}:.+ The four characters before the
colon represent the type of conversio source. Content after the colon
represents the ID of the conversion source within that type. The ID of two
different conversion sources might be the same across different types. The
following type prefixes are supported:
- galk: For GoogleAnalyticsLink sources.
- mcdn: For MerchantCenterDestination sources.
state: i32
Output only. Current state of this conversion source. Can’t be edited through the API.
expire_time: Option<Timestamp>
Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete.
controller: i32
Output only. Controller of the conversion source.
source_data: Option<SourceData>
Required. Conversion source data specific to each different type of source.
Implementations§
source§impl ConversionSource
impl ConversionSource
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn controller(&self) -> Controller
pub fn controller(&self) -> Controller
Returns the enum value of controller
, or the default if the field is set to an invalid enum value.
sourcepub fn set_controller(&mut self, value: Controller)
pub fn set_controller(&mut self, value: Controller)
Sets controller
to the provided enum value.
Trait Implementations§
source§impl Clone for ConversionSource
impl Clone for ConversionSource
source§fn clone(&self) -> ConversionSource
fn clone(&self) -> ConversionSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConversionSource
impl Debug for ConversionSource
source§impl Default for ConversionSource
impl Default for ConversionSource
source§impl Message for ConversionSource
impl Message for ConversionSource
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 ConversionSource
impl PartialEq for ConversionSource
source§fn eq(&self, other: &ConversionSource) -> bool
fn eq(&self, other: &ConversionSource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConversionSource
Auto Trait Implementations§
impl Freeze for ConversionSource
impl RefUnwindSafe for ConversionSource
impl Send for ConversionSource
impl Sync for ConversionSource
impl Unpin for ConversionSource
impl UnwindSafe for ConversionSource
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