Struct googapis::google::ads::googleads::v8::common::ItemAttribute [−][src]
pub struct ItemAttribute {
pub item_id: String,
pub merchant_id: Option<i64>,
pub country_code: String,
pub language_code: String,
pub quantity: i64,
}
Expand description
Item attributes of the transaction.
Fields
item_id: String
A unique identifier of a product. It can be either the Merchant Center Item ID or GTIN (Global Trade Item Number).
merchant_id: Option<i64>
ID of the Merchant Center Account.
country_code: String
Common Locale Data Repository (CLDR) territory code of the country associated with the feed where your items are uploaded. See https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes for more information.
language_code: String
ISO 639-1 code of the language associated with the feed where your items are uploaded
quantity: i64
The number of items sold. Defaults to 1 if not set.
Implementations
Returns the value of merchant_id
, or the default value if merchant_id
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ItemAttribute
impl Send for ItemAttribute
impl Sync for ItemAttribute
impl Unpin for ItemAttribute
impl UnwindSafe for ItemAttribute
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more