pub struct ComponentSettings {
pub foreground: Option<Color>,
pub background: Option<Background>,
pub width: Option<u8>,
pub padding: Option<u8>,
pub offset_x: Option<i8>,
pub offset_y: Option<i8>,
pub fonts: Vec<Font>,
pub border: Option<Border>,
}Expand description
Default options available for every component.
Fields§
§foreground: Option<Color>§background: Option<Background>§width: Option<u8>§padding: Option<u8>§offset_x: Option<i8>§offset_y: Option<i8>§fonts: Vec<Font>§border: Option<Border>Trait Implementations§
Source§impl Clone for ComponentSettings
impl Clone for ComponentSettings
Source§fn clone(&self) -> ComponentSettings
fn clone(&self) -> ComponentSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentSettings
impl Debug for ComponentSettings
Source§impl<'de> Deserialize<'de> for ComponentSettings
impl<'de> Deserialize<'de> for ComponentSettings
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 Hash for ComponentSettings
impl Hash for ComponentSettings
Source§impl PartialEq for ComponentSettings
impl PartialEq for ComponentSettings
impl Eq for ComponentSettings
impl StructuralPartialEq for ComponentSettings
Auto Trait Implementations§
impl Freeze for ComponentSettings
impl RefUnwindSafe for ComponentSettings
impl Send for ComponentSettings
impl Sync for ComponentSettings
impl Unpin for ComponentSettings
impl UnwindSafe for ComponentSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.