pub struct Segments {
Show 58 fields pub ad_network_type: i32, pub conversion_action: Option<String>, pub conversion_action_category: i32, pub conversion_action_name: Option<String>, pub conversion_custom_dimensions: Vec<Value>, pub date: Option<String>, pub day_of_week: i32, pub device: i32, pub keyword: Option<Keyword>, pub month: Option<String>, pub product_bidding_category_level1: Option<String>, pub product_bidding_category_level2: Option<String>, pub product_bidding_category_level3: Option<String>, pub product_bidding_category_level4: Option<String>, pub product_bidding_category_level5: Option<String>, pub product_brand: Option<String>, pub product_channel: i32, pub product_channel_exclusivity: i32, pub product_condition: i32, pub product_country: Option<String>, pub product_custom_attribute0: Option<String>, pub product_custom_attribute1: Option<String>, pub product_custom_attribute2: Option<String>, pub product_custom_attribute3: Option<String>, pub product_custom_attribute4: Option<String>, pub product_item_id: Option<String>, pub product_language: Option<String>, pub product_sold_bidding_category_level1: Option<String>, pub product_sold_bidding_category_level2: Option<String>, pub product_sold_bidding_category_level3: Option<String>, pub product_sold_bidding_category_level4: Option<String>, pub product_sold_bidding_category_level5: Option<String>, pub product_sold_brand: Option<String>, pub product_sold_condition: i32, pub product_sold_custom_attribute0: Option<String>, pub product_sold_custom_attribute1: Option<String>, pub product_sold_custom_attribute2: Option<String>, pub product_sold_custom_attribute3: Option<String>, pub product_sold_custom_attribute4: Option<String>, pub product_sold_item_id: Option<String>, pub product_sold_title: Option<String>, pub product_sold_type_l1: Option<String>, pub product_sold_type_l2: Option<String>, pub product_sold_type_l3: Option<String>, pub product_sold_type_l4: Option<String>, pub product_sold_type_l5: Option<String>, pub product_store_id: Option<String>, pub product_title: Option<String>, pub product_type_l1: Option<String>, pub product_type_l2: Option<String>, pub product_type_l3: Option<String>, pub product_type_l4: Option<String>, pub product_type_l5: Option<String>, pub quarter: Option<String>, pub raw_event_conversion_dimensions: Vec<Value>, pub week: Option<String>, pub year: Option<i32>, pub asset_interaction_target: Option<AssetInteractionTarget>,
}
Expand description

Segment only fields.

Fields§

§ad_network_type: i32

Ad network type.

§conversion_action: Option<String>

Resource name of the conversion action.

§conversion_action_category: i32

Conversion action category.

§conversion_action_name: Option<String>

Conversion action name.

§conversion_custom_dimensions: Vec<Value>

The conversion custom dimensions.

§date: Option<String>

Date to which metrics apply. yyyy-MM-dd format, for example, 2018-04-17.

§day_of_week: i32

Day of the week, for example, MONDAY.

§device: i32

Device to which metrics apply.

§keyword: Option<Keyword>

Keyword criterion.

§month: Option<String>

Month as represented by the date of the first day of a month. Formatted as yyyy-MM-dd.

§product_bidding_category_level1: Option<String>

Bidding category (level 1) of the product.

§product_bidding_category_level2: Option<String>

Bidding category (level 2) of the product.

§product_bidding_category_level3: Option<String>

Bidding category (level 3) of the product.

§product_bidding_category_level4: Option<String>

Bidding category (level 4) of the product.

§product_bidding_category_level5: Option<String>

Bidding category (level 5) of the product.

§product_brand: Option<String>

Brand of the product.

§product_channel: i32

Channel of the product.

§product_channel_exclusivity: i32

Channel exclusivity of the product.

§product_condition: i32

Condition of the product.

§product_country: Option<String>

Resource name of the geo target constant for the country of sale of the product.

§product_custom_attribute0: Option<String>

Custom attribute 0 of the product.

§product_custom_attribute1: Option<String>

Custom attribute 1 of the product.

§product_custom_attribute2: Option<String>

Custom attribute 2 of the product.

§product_custom_attribute3: Option<String>

Custom attribute 3 of the product.

§product_custom_attribute4: Option<String>

Custom attribute 4 of the product.

§product_item_id: Option<String>

Item ID of the product.

§product_language: Option<String>

Resource name of the language constant for the language of the product.

§product_sold_bidding_category_level1: Option<String>

Bidding category (level 1) of the product sold.

§product_sold_bidding_category_level2: Option<String>

Bidding category (level 2) of the product sold.

§product_sold_bidding_category_level3: Option<String>

Bidding category (level 3) of the product sold.

§product_sold_bidding_category_level4: Option<String>

Bidding category (level 4) of the product sold.

§product_sold_bidding_category_level5: Option<String>

Bidding category (level 5) of the product sold.

§product_sold_brand: Option<String>

Brand of the product sold.

§product_sold_condition: i32

Condition of the product sold.

§product_sold_custom_attribute0: Option<String>

Custom attribute 0 of the product sold.

§product_sold_custom_attribute1: Option<String>

Custom attribute 1 of the product sold.

§product_sold_custom_attribute2: Option<String>

Custom attribute 2 of the product sold.

§product_sold_custom_attribute3: Option<String>

Custom attribute 3 of the product sold.

§product_sold_custom_attribute4: Option<String>

Custom attribute 4 of the product sold.

§product_sold_item_id: Option<String>

Item ID of the product sold.

§product_sold_title: Option<String>

Title of the product sold.

§product_sold_type_l1: Option<String>

Type (level 1) of the product sold.

§product_sold_type_l2: Option<String>

Type (level 2) of the product sold.

§product_sold_type_l3: Option<String>

Type (level 3) of the product sold.

§product_sold_type_l4: Option<String>

Type (level 4) of the product sold.

§product_sold_type_l5: Option<String>

Type (level 5) of the product sold.

§product_store_id: Option<String>

Store ID of the product.

§product_title: Option<String>

Title of the product.

§product_type_l1: Option<String>

Type (level 1) of the product.

§product_type_l2: Option<String>

Type (level 2) of the product.

§product_type_l3: Option<String>

Type (level 3) of the product.

§product_type_l4: Option<String>

Type (level 4) of the product.

§product_type_l5: Option<String>

Type (level 5) of the product.

§quarter: Option<String>

Quarter as represented by the date of the first day of a quarter. Uses the calendar year for quarters, for example, the second quarter of 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd.

§raw_event_conversion_dimensions: Vec<Value>

The raw event conversion dimensions.

§week: Option<String>

Week as defined as Monday through Sunday, and represented by the date of Monday. Formatted as yyyy-MM-dd.

§year: Option<i32>

Year, formatted as yyyy.

§asset_interaction_target: Option<AssetInteractionTarget>

Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics. Indicates whether the interaction metrics occurred on the asset itself or a different asset or ad unit. Interactions (for example, clicks) are counted across all the parts of the served ad (for example, Ad itself and other components like Sitelinks) when they are served together. When interaction_on_this_asset is true, it means the interactions are on this specific asset and when interaction_on_this_asset is false, it means the interactions is not on this specific asset but on other parts of the served ad this asset is served with.

Implementations§

source§

impl Segments

source

pub fn device(&self) -> Device

Returns the enum value of device, or the default if the field is set to an invalid enum value.

source

pub fn set_device(&mut self, value: Device)

Sets device to the provided enum value.

source

pub fn ad_network_type(&self) -> AdNetworkType

Returns the enum value of ad_network_type, or the default if the field is set to an invalid enum value.

source

pub fn set_ad_network_type(&mut self, value: AdNetworkType)

Sets ad_network_type to the provided enum value.

source

pub fn day_of_week(&self) -> DayOfWeek

Returns the enum value of day_of_week, or the default if the field is set to an invalid enum value.

source

pub fn set_day_of_week(&mut self, value: DayOfWeek)

Sets day_of_week to the provided enum value.

source

pub fn product_channel(&self) -> ProductChannel

Returns the enum value of product_channel, or the default if the field is set to an invalid enum value.

source

pub fn set_product_channel(&mut self, value: ProductChannel)

Sets product_channel to the provided enum value.

source

pub fn product_channel_exclusivity(&self) -> ProductChannelExclusivity

Returns the enum value of product_channel_exclusivity, or the default if the field is set to an invalid enum value.

source

pub fn set_product_channel_exclusivity( &mut self, value: ProductChannelExclusivity )

Sets product_channel_exclusivity to the provided enum value.

source

pub fn product_condition(&self) -> ProductCondition

Returns the enum value of product_condition, or the default if the field is set to an invalid enum value.

source

pub fn set_product_condition(&mut self, value: ProductCondition)

Sets product_condition to the provided enum value.

source

pub fn conversion_action_category(&self) -> ConversionActionCategory

Returns the enum value of conversion_action_category, or the default if the field is set to an invalid enum value.

source

pub fn set_conversion_action_category( &mut self, value: ConversionActionCategory )

Sets conversion_action_category to the provided enum value.

source

pub fn date(&self) -> &str

Returns the value of date, or the default value if date is unset.

source

pub fn month(&self) -> &str

Returns the value of month, or the default value if month is unset.

source

pub fn product_bidding_category_level1(&self) -> &str

Returns the value of product_bidding_category_level1, or the default value if product_bidding_category_level1 is unset.

source

pub fn product_bidding_category_level2(&self) -> &str

Returns the value of product_bidding_category_level2, or the default value if product_bidding_category_level2 is unset.

source

pub fn product_bidding_category_level3(&self) -> &str

Returns the value of product_bidding_category_level3, or the default value if product_bidding_category_level3 is unset.

source

pub fn product_bidding_category_level4(&self) -> &str

Returns the value of product_bidding_category_level4, or the default value if product_bidding_category_level4 is unset.

source

pub fn product_bidding_category_level5(&self) -> &str

Returns the value of product_bidding_category_level5, or the default value if product_bidding_category_level5 is unset.

source

pub fn product_brand(&self) -> &str

Returns the value of product_brand, or the default value if product_brand is unset.

source

pub fn product_country(&self) -> &str

Returns the value of product_country, or the default value if product_country is unset.

source

pub fn product_custom_attribute0(&self) -> &str

Returns the value of product_custom_attribute0, or the default value if product_custom_attribute0 is unset.

source

pub fn product_custom_attribute1(&self) -> &str

Returns the value of product_custom_attribute1, or the default value if product_custom_attribute1 is unset.

source

pub fn product_custom_attribute2(&self) -> &str

Returns the value of product_custom_attribute2, or the default value if product_custom_attribute2 is unset.

source

pub fn product_custom_attribute3(&self) -> &str

Returns the value of product_custom_attribute3, or the default value if product_custom_attribute3 is unset.

source

pub fn product_custom_attribute4(&self) -> &str

Returns the value of product_custom_attribute4, or the default value if product_custom_attribute4 is unset.

source

pub fn product_item_id(&self) -> &str

Returns the value of product_item_id, or the default value if product_item_id is unset.

source

pub fn product_language(&self) -> &str

Returns the value of product_language, or the default value if product_language is unset.

source

pub fn product_store_id(&self) -> &str

Returns the value of product_store_id, or the default value if product_store_id is unset.

source

pub fn product_title(&self) -> &str

Returns the value of product_title, or the default value if product_title is unset.

source

pub fn product_type_l1(&self) -> &str

Returns the value of product_type_l1, or the default value if product_type_l1 is unset.

source

pub fn product_type_l2(&self) -> &str

Returns the value of product_type_l2, or the default value if product_type_l2 is unset.

source

pub fn product_type_l3(&self) -> &str

Returns the value of product_type_l3, or the default value if product_type_l3 is unset.

source

pub fn product_type_l4(&self) -> &str

Returns the value of product_type_l4, or the default value if product_type_l4 is unset.

source

pub fn product_type_l5(&self) -> &str

Returns the value of product_type_l5, or the default value if product_type_l5 is unset.

source

pub fn conversion_action_name(&self) -> &str

Returns the value of conversion_action_name, or the default value if conversion_action_name is unset.

source

pub fn quarter(&self) -> &str

Returns the value of quarter, or the default value if quarter is unset.

source

pub fn week(&self) -> &str

Returns the value of week, or the default value if week is unset.

source

pub fn year(&self) -> i32

Returns the value of year, or the default value if year is unset.

source

pub fn conversion_action(&self) -> &str

Returns the value of conversion_action, or the default value if conversion_action is unset.

source

pub fn product_sold_bidding_category_level1(&self) -> &str

Returns the value of product_sold_bidding_category_level1, or the default value if product_sold_bidding_category_level1 is unset.

source

pub fn product_sold_bidding_category_level2(&self) -> &str

Returns the value of product_sold_bidding_category_level2, or the default value if product_sold_bidding_category_level2 is unset.

source

pub fn product_sold_bidding_category_level3(&self) -> &str

Returns the value of product_sold_bidding_category_level3, or the default value if product_sold_bidding_category_level3 is unset.

source

pub fn product_sold_bidding_category_level4(&self) -> &str

Returns the value of product_sold_bidding_category_level4, or the default value if product_sold_bidding_category_level4 is unset.

source

pub fn product_sold_bidding_category_level5(&self) -> &str

Returns the value of product_sold_bidding_category_level5, or the default value if product_sold_bidding_category_level5 is unset.

source

pub fn product_sold_brand(&self) -> &str

Returns the value of product_sold_brand, or the default value if product_sold_brand is unset.

source

pub fn product_sold_condition(&self) -> ProductCondition

Returns the enum value of product_sold_condition, or the default if the field is set to an invalid enum value.

source

pub fn set_product_sold_condition(&mut self, value: ProductCondition)

Sets product_sold_condition to the provided enum value.

source

pub fn product_sold_custom_attribute0(&self) -> &str

Returns the value of product_sold_custom_attribute0, or the default value if product_sold_custom_attribute0 is unset.

source

pub fn product_sold_custom_attribute1(&self) -> &str

Returns the value of product_sold_custom_attribute1, or the default value if product_sold_custom_attribute1 is unset.

source

pub fn product_sold_custom_attribute2(&self) -> &str

Returns the value of product_sold_custom_attribute2, or the default value if product_sold_custom_attribute2 is unset.

source

pub fn product_sold_custom_attribute3(&self) -> &str

Returns the value of product_sold_custom_attribute3, or the default value if product_sold_custom_attribute3 is unset.

source

pub fn product_sold_custom_attribute4(&self) -> &str

Returns the value of product_sold_custom_attribute4, or the default value if product_sold_custom_attribute4 is unset.

source

pub fn product_sold_item_id(&self) -> &str

Returns the value of product_sold_item_id, or the default value if product_sold_item_id is unset.

source

pub fn product_sold_title(&self) -> &str

Returns the value of product_sold_title, or the default value if product_sold_title is unset.

source

pub fn product_sold_type_l1(&self) -> &str

Returns the value of product_sold_type_l1, or the default value if product_sold_type_l1 is unset.

source

pub fn product_sold_type_l2(&self) -> &str

Returns the value of product_sold_type_l2, or the default value if product_sold_type_l2 is unset.

source

pub fn product_sold_type_l3(&self) -> &str

Returns the value of product_sold_type_l3, or the default value if product_sold_type_l3 is unset.

source

pub fn product_sold_type_l4(&self) -> &str

Returns the value of product_sold_type_l4, or the default value if product_sold_type_l4 is unset.

source

pub fn product_sold_type_l5(&self) -> &str

Returns the value of product_sold_type_l5, or the default value if product_sold_type_l5 is unset.

Trait Implementations§

source§

impl Clone for Segments

source§

fn clone(&self) -> Segments

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Segments

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Segments

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for Segments

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for Segments

source§

fn eq(&self, other: &Segments) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Segments

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more