pub struct SunbeamConfig {
pub colors: HashMap<ColorName, CssColor>,
pub fonts: HashMap<FontName, Vec<String>>,
pub screen_widths: HashSet<u32>,
}Expand description
Configuration for Sunbeam.
Fields§
§colors: HashMap<ColorName, CssColor>Colors that can be used for text and backgrounds.
fonts: HashMap<FontName, Vec<String>>Fonts that can be used for text.
screen_widths: HashSet<u32>Pre-defined screen widths that can be used for media queries
Trait Implementations§
Source§impl Default for SunbeamConfig
impl Default for SunbeamConfig
Source§impl<'de> Deserialize<'de> for SunbeamConfig
impl<'de> Deserialize<'de> for SunbeamConfig
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 SunbeamConfig
impl RefUnwindSafe for SunbeamConfig
impl Send for SunbeamConfig
impl Sync for SunbeamConfig
impl Unpin for SunbeamConfig
impl UnwindSafe for SunbeamConfig
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