Struct google_api_proto::google::ads::googleads::v16::common::PriceFeedItem
source · pub struct PriceFeedItem {
pub type: i32,
pub price_qualifier: i32,
pub tracking_url_template: Option<String>,
pub language_code: Option<String>,
pub price_offerings: Vec<PriceOffer>,
pub final_url_suffix: Option<String>,
}
Expand description
Represents a Price extension.
Fields§
§type: i32
Price extension type of this extension.
price_qualifier: i32
Price qualifier for all offers of this price extension.
tracking_url_template: Option<String>
Tracking URL template for all offers of this price extension.
language_code: Option<String>
The code of the language used for this price extension.
price_offerings: Vec<PriceOffer>
The price offerings in this price extension.
final_url_suffix: Option<String>
Tracking URL template for all offers of this price extension.
Implementations§
source§impl PriceFeedItem
impl PriceFeedItem
sourcepub fn type(&self) -> PriceExtensionType
pub fn type(&self) -> PriceExtensionType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: PriceExtensionType)
pub fn set_type(&mut self, value: PriceExtensionType)
Sets type
to the provided enum value.
sourcepub fn price_qualifier(&self) -> PriceExtensionPriceQualifier
pub fn price_qualifier(&self) -> PriceExtensionPriceQualifier
Returns the enum value of price_qualifier
, or the default if the field is set to an invalid enum value.
sourcepub fn set_price_qualifier(&mut self, value: PriceExtensionPriceQualifier)
pub fn set_price_qualifier(&mut self, value: PriceExtensionPriceQualifier)
Sets price_qualifier
to the provided enum value.
sourcepub fn tracking_url_template(&self) -> &str
pub fn tracking_url_template(&self) -> &str
Returns the value of tracking_url_template
, or the default value if tracking_url_template
is unset.
sourcepub fn language_code(&self) -> &str
pub fn language_code(&self) -> &str
Returns the value of language_code
, or the default value if language_code
is unset.
sourcepub fn final_url_suffix(&self) -> &str
pub fn final_url_suffix(&self) -> &str
Returns the value of final_url_suffix
, or the default value if final_url_suffix
is unset.
Trait Implementations§
source§impl Clone for PriceFeedItem
impl Clone for PriceFeedItem
source§fn clone(&self) -> PriceFeedItem
fn clone(&self) -> PriceFeedItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PriceFeedItem
impl Debug for PriceFeedItem
source§impl Default for PriceFeedItem
impl Default for PriceFeedItem
source§impl Message for PriceFeedItem
impl Message for PriceFeedItem
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 PriceFeedItem
impl PartialEq for PriceFeedItem
source§fn eq(&self, other: &PriceFeedItem) -> bool
fn eq(&self, other: &PriceFeedItem) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PriceFeedItem
Auto Trait Implementations§
impl Freeze for PriceFeedItem
impl RefUnwindSafe for PriceFeedItem
impl Send for PriceFeedItem
impl Sync for PriceFeedItem
impl Unpin for PriceFeedItem
impl UnwindSafe for PriceFeedItem
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