Struct google_content2::PosSaleResponse
source · pub struct PosSaleResponse {
pub item_id: Option<String>,
pub store_code: Option<String>,
pub kind: Option<String>,
pub content_language: Option<String>,
pub timestamp: Option<String>,
pub price: Option<Price>,
pub target_country: Option<i64>,
pub gtin: Option<String>,
pub sale_id: Option<String>,
pub quantity: Option<String>,
}Expand description
Fields§
§item_id: Option<String>A unique identifier for the item.
store_code: Option<String>The identifier of the merchant’s store. Either a storeCode inserted via the API or the code of the store in Google My Business.
kind: Option<String>Identifies what kind of resource this is. Value: the fixed string “content#posSaleResponse”.
content_language: Option<String>The two-letter ISO 639-1 language code for the item.
timestamp: Option<String>The inventory timestamp, in ISO 8601 format.
price: Option<Price>The price of the item.
target_country: Option<i64>The CLDR territory code for the item.
gtin: Option<String>Global Trade Item Number.
sale_id: Option<String>A unique ID to group items from the same sale event.
quantity: Option<String>The relative change of the available quantity. Negative for items returned.
Trait Implementations§
source§impl Clone for PosSaleResponse
impl Clone for PosSaleResponse
source§fn clone(&self) -> PosSaleResponse
fn clone(&self) -> PosSaleResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PosSaleResponse
impl Debug for PosSaleResponse
source§impl Default for PosSaleResponse
impl Default for PosSaleResponse
source§fn default() -> PosSaleResponse
fn default() -> PosSaleResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PosSaleResponse
impl<'de> Deserialize<'de> for PosSaleResponse
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for PosSaleResponse
impl Serialize for PosSaleResponse
impl ResponseResult for PosSaleResponse
Auto Trait Implementations§
impl Freeze for PosSaleResponse
impl RefUnwindSafe for PosSaleResponse
impl Send for PosSaleResponse
impl Sync for PosSaleResponse
impl Unpin for PosSaleResponse
impl UnwindSafe for PosSaleResponse
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more