pub struct StoreItem {
pub name: String,
pub price: String,
pub blurb: Option<String>,
pub badge: Option<String>,
pub category: Option<String>,
}Expand description
A product line in a Store block.
Fields§
§name: String§price: StringNumeric price as authored (e.g. “48”, “12.50”); the widget parses it.
blurb: Option<String>One-line description shown under the name. Optional.
badge: Option<String>Corner badge (e.g. “Bestseller”, “New”). Optional.
category: Option<String>Category for the filter chips. None groups under “All”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StoreItem
impl<'de> Deserialize<'de> for StoreItem
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 StoreItem
impl RefUnwindSafe for StoreItem
impl Send for StoreItem
impl Sync for StoreItem
impl Unpin for StoreItem
impl UnsafeUnpin for StoreItem
impl UnwindSafe for StoreItem
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