pub struct Icon {
pub svg: &'static str,
pub slug: &'static str,
pub title: &'static str,
pub hex: &'static str,
pub source: &'static str,
pub guidelines: Option<&'static str>,
pub license: Option<&'static str>,
}Expand description
A Generic structure to describe a single icon.
Fields§
§svg: &'static strThe SVG data.
slug: &'static strThe slug to identify the icon.
title: &'static strThe title of the icon’s brand.
hex: &'static strThe color associated with the brand’s icon
source: &'static strA URL pointing to the brand’s website.
guidelines: Option<&'static str>A URL pointing to the brand’s usage guidelines (if known).
license: Option<&'static str>A License associated with the brand’s icon/assets (if known).
Trait Implementations§
impl Eq for Icon
impl StructuralPartialEq for Icon
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