pub struct ProductGroup {
pub label: Option<String>,
pub items: Vec<ProductItem>,
pub cols: Option<u8>,
}Expand description
A labelled group of product link-cards within a ProductGrid.
Fields§
§label: Option<String>Group heading (e.g. “Platforms”). Empty when the grid is ungrouped.
items: Vec<ProductItem>§cols: Option<u8>{cols=N} on the heading line (tiles mode): max columns for this
group’s row, clamped 1–3. None → the 2-col default.
Trait Implementations§
Source§impl Clone for ProductGroup
impl Clone for ProductGroup
Source§fn clone(&self) -> ProductGroup
fn clone(&self) -> ProductGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProductGroup
impl Debug for ProductGroup
Source§impl<'de> Deserialize<'de> for ProductGroup
impl<'de> Deserialize<'de> for ProductGroup
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
Auto Trait Implementations§
impl Freeze for ProductGroup
impl RefUnwindSafe for ProductGroup
impl Send for ProductGroup
impl Sync for ProductGroup
impl Unpin for ProductGroup
impl UnsafeUnpin for ProductGroup
impl UnwindSafe for ProductGroup
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