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§fn default() -> SunbeamConfig
fn default() -> SunbeamConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SunbeamConfig
impl<'de> Deserialize<'de> for SunbeamConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SunbeamConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SunbeamConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SunbeamConfig
impl Serialize for SunbeamConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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