pub struct ProductItem {
pub name: String,
pub href: String,
pub emblem: Option<String>,
pub tagline: Option<String>,
pub cta1_label: Option<String>,
pub cta1_href: Option<String>,
pub cta2_label: Option<String>,
pub cta2_href: Option<String>,
pub bg: Option<String>,
}Expand description
A single product link-card: emblem + name + tagline + link.
Fields§
§name: String§href: String§emblem: Option<String>Emblem image src. Optional — cards render without an image when absent.
tagline: Option<String>§cta1_label: Option<String>Primary CTA override ([Label](href), first of two trailing link
fields): replaces the default “Learn more” pill (tiles mode).
cta1_href: Option<String>§cta2_label: Option<String>Secondary CTA ([Label](href) trailing pipe field): renders as the
second, outline pill in the tile’s CTA row (tiles mode).
cta2_href: Option<String>§bg: Option<String>Tile background spec (5th pipe field, raw author value):
image:<src> | color:<css-color> | gradient:<css-gradient> |
transparent (default when absent). A trailing dark token flags a
dark background → the tile renders light text.
Trait Implementations§
Source§impl Clone for ProductItem
impl Clone for ProductItem
Source§fn clone(&self) -> ProductItem
fn clone(&self) -> ProductItem
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 ProductItem
impl Debug for ProductItem
Source§impl<'de> Deserialize<'de> for ProductItem
impl<'de> Deserialize<'de> for ProductItem
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 ProductItem
impl RefUnwindSafe for ProductItem
impl Send for ProductItem
impl Sync for ProductItem
impl Unpin for ProductItem
impl UnsafeUnpin for ProductItem
impl UnwindSafe for ProductItem
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