pub struct Collection {
pub id: CollectionId,
pub storefront_id: StoreFrontId,
pub title: String,
pub product_ids: Vec<StoreProductId>,
pub slug: Option<String>,
pub description: Option<String>,
pub sort_order: i32,
pub metadata: BTreeMap<String, Value>,
}Expand description
Collection of products curated for a storefront.
Fields§
§id: CollectionIdCollection identifier.
storefront_id: StoreFrontIdStorefront owning the collection.
title: StringDisplay title.
product_ids: Vec<StoreProductId>Products included in the collection.
slug: Option<String>Optional slug.
description: Option<String>Optional description.
sort_order: i32Sort order hint.
metadata: BTreeMap<String, Value>Additional metadata.
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
Returns a duplicate 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 Collection
impl Debug for Collection
Source§impl<'de> Deserialize<'de> for Collection
impl<'de> Deserialize<'de> for Collection
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 PartialEq for Collection
impl PartialEq for Collection
Source§impl Serialize for Collection
impl Serialize for Collection
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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