pub struct Icon {
pub color: Option<StylesColor>,
pub semantic_label: Option<String>,
pub size: Option<f64>,
pub style: Option<IconDefinitionsIconStyle>,
pub type_: Value,
pub value: StylesIconName,
}Expand description
The Icon to use
Fields§
§color: Option<StylesColor>The color of the Icon. If not set or null, the color is inherited from the theme.
semantic_label: Option<String>The semantic label for the Icon. This will be announced when using accessibility mode.
size: Option<f64>§style: Option<IconDefinitionsIconStyle>§type_: ValueThe identifier of the component
value: StylesIconNameThe value of the Icon
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Icon
impl<'de> Deserialize<'de> for Icon
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
Source§impl From<Icon> for LenraComponent
impl From<Icon> for LenraComponent
Auto Trait Implementations§
impl Freeze for Icon
impl RefUnwindSafe for Icon
impl Send for Icon
impl Sync for Icon
impl Unpin for Icon
impl UnsafeUnpin for Icon
impl UnwindSafe for Icon
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