Enum yew_bootstrap::component::BrandType
source · pub enum BrandType {
BrandSimple {
text: AttrValue,
url: Option<AttrValue>,
},
BrandIcon {
icon: AttrValue,
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
Brand type for a NavBar
This can contain a text, icon, image or combined (text and image)
Variants§
BrandSimple
Text with optional link
BrandIcon
a brand icon is a bootstrap icon, requiring bootstrap-icons to be imported; see crate::util::include_cdn_icons
BrandImage
Fields
Image with optional dimensions, link and descriptive text
BrandCombined
Fields
Combined image and text with URL
Trait Implementations§
source§impl PartialEq for BrandType
impl PartialEq for BrandType
impl Eq for BrandType
impl StructuralEq for BrandType
impl StructuralPartialEq for BrandType
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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.