pub struct StoreFront {
pub id: StoreFrontId,
pub slug: String,
pub name: String,
pub theme: Theme,
pub sections: Vec<LayoutSection>,
pub collections: Vec<Collection>,
pub overrides: Vec<ProductOverride>,
pub worker_id: Option<String>,
pub metadata: BTreeMap<String, Value>,
}Expand description
Storefront configuration and content.
Fields§
§id: StoreFrontIdStorefront identifier.
slug: StringSlug used for routing.
name: StringDisplay name.
theme: ThemeVisual theme.
sections: Vec<LayoutSection>Layout sections composing the storefront.
collections: Vec<Collection>Curated collections.
overrides: Vec<ProductOverride>Product overrides scoped to this storefront.
worker_id: Option<String>Optional worker identifier used by messaging.
metadata: BTreeMap<String, Value>Additional metadata.
Trait Implementations§
Source§impl Clone for StoreFront
impl Clone for StoreFront
Source§fn clone(&self) -> StoreFront
fn clone(&self) -> StoreFront
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 StoreFront
impl Debug for StoreFront
Source§impl<'de> Deserialize<'de> for StoreFront
impl<'de> Deserialize<'de> for StoreFront
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 StoreFront
impl PartialEq for StoreFront
Source§impl Serialize for StoreFront
impl Serialize for StoreFront
impl StructuralPartialEq for StoreFront
Auto Trait Implementations§
impl Freeze for StoreFront
impl RefUnwindSafe for StoreFront
impl Send for StoreFront
impl Sync for StoreFront
impl Unpin for StoreFront
impl UnwindSafe for StoreFront
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