pub enum BrandType {
BrandSimple {
text: AttrValue,
url: Option<AttrValue>,
},
BrandIcon {
icon: BI,
text: AttrValue,
url: Option<AttrValue>,
},
BrandImage {
image_url: AttrValue,
alt: AttrValue,
dimension: Option<Dimension>,
},
BrandCombined {
text: AttrValue,
url: Option<AttrValue>,
image_url: AttrValue,
alt: AttrValue,
dimension: Option<Dimension>,
},
}Expand description
Variants§
BrandSimple
Text with optional link
BrandIcon
a brand icon is a bootstrap icon, requiring bootstrap-icons to be imported; see crate::icons
BrandImage
Image with optional dimensions, link and descriptive text
Fields
BrandCombined
Combined image and text with URL
Trait Implementations§
impl Eq for BrandType
impl StructuralPartialEq for BrandType
Auto Trait Implementations§
impl Freeze for BrandType
impl RefUnwindSafe for BrandType
impl !Send for BrandType
impl !Sync for BrandType
impl Unpin for BrandType
impl UnwindSafe for BrandType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.