Struct google_recommendationengine1_beta1::api::GoogleCloudRecommendationengineV1beta1ProductCatalogItem
source · [−]pub struct GoogleCloudRecommendationengineV1beta1ProductCatalogItem {
pub available_quantity: Option<String>,
pub canonical_product_uri: Option<String>,
pub costs: Option<HashMap<String, f32>>,
pub currency_code: Option<String>,
pub exact_price: Option<GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice>,
pub images: Option<Vec<GoogleCloudRecommendationengineV1beta1Image>>,
pub price_range: Option<GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange>,
pub stock_state: Option<String>,
}
Expand description
ProductCatalogItem captures item metadata specific to retail products.
This type is not used in any activity, and only used as part of another schema.
Fields
available_quantity: Option<String>
Optional. The available quantity of the item.
canonical_product_uri: Option<String>
Optional. Canonical URL directly linking to the item detail page with a length limit of 5 KiB..
costs: Option<HashMap<String, f32>>
Optional. A map to pass the costs associated with the product. For example: {“manufacturing”: 45.5} The profit of selling this item is computed like so: * If ‘exactPrice’ is provided, profit = displayPrice - sum(costs) * If ‘priceRange’ is provided, profit = minPrice - sum(costs)
currency_code: Option<String>
Optional. Only required if the price is set. Currency code for price/costs. Use three-character ISO-4217 code.
exact_price: Option<GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice>
Optional. The exact product price.
images: Option<Vec<GoogleCloudRecommendationengineV1beta1Image>>
Optional. Product images for the catalog item.
price_range: Option<GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange>
Optional. The product price range.
stock_state: Option<String>
Optional. Online stock state of the catalog item. Default is IN_STOCK
.
Trait Implementations
sourceimpl Clone for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
impl Clone for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
sourcefn clone(&self) -> GoogleCloudRecommendationengineV1beta1ProductCatalogItem
fn clone(&self) -> GoogleCloudRecommendationengineV1beta1ProductCatalogItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
impl Default for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
sourcefn default() -> GoogleCloudRecommendationengineV1beta1ProductCatalogItem
fn default() -> GoogleCloudRecommendationengineV1beta1ProductCatalogItem
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
impl<'de> Deserialize<'de> for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
sourcefn 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
impl Part for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
Auto Trait Implementations
impl RefUnwindSafe for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
impl Send for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
impl Sync for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
impl Unpin for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
impl UnwindSafe for GoogleCloudRecommendationengineV1beta1ProductCatalogItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more