pub struct TokenColor {
pub background: Option<Box<ElementContainer>>,
pub border: Option<Box<ElementContainer>>,
pub outline: Option<Box<ElementContainer>>,
pub text: Option<Box<TextElementContainer>>,
pub text_decoration_color: Option<Box<TextElementContainer>>,
}Expand description
everything related to color
Fields§
§background: Option<Box<ElementContainer>>the background property for background-colors
border: Option<Box<ElementContainer>>the border property
outline: Option<Box<ElementContainer>>the outline property
text: Option<Box<TextElementContainer>>the text property contains the text colors, to be more precise, the coloring/fill of the glyphs
text_decoration_color: Option<Box<TextElementContainer>>the text property contains the text-decoration colors, behaves just like the CSS property
Trait Implementations§
Source§impl Clone for TokenColor
impl Clone for TokenColor
Source§fn clone(&self) -> TokenColor
fn clone(&self) -> TokenColor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenColor
impl Debug for TokenColor
Source§impl Default for TokenColor
impl Default for TokenColor
Source§fn default() -> TokenColor
fn default() -> TokenColor
Returns the “default value” for a type. Read more
Source§impl PartialEq for TokenColor
impl PartialEq for TokenColor
Source§impl Serialize for TokenColor
impl Serialize for TokenColor
impl StructuralPartialEq for TokenColor
Auto Trait Implementations§
impl Freeze for TokenColor
impl RefUnwindSafe for TokenColor
impl Send for TokenColor
impl Sync for TokenColor
impl Unpin for TokenColor
impl UnwindSafe for TokenColor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)