pub struct LabelColor {
pub text_color: String,
pub background_color: String,
}Fields§
§text_color: String§background_color: StringImplementations§
Source§impl LabelColor
impl LabelColor
pub fn new(text_color: String, background_color: String) -> LabelColor
Trait Implementations§
Source§impl Clone for LabelColor
impl Clone for LabelColor
Source§fn clone(&self) -> LabelColor
fn clone(&self) -> LabelColor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LabelColor
impl Debug for LabelColor
Source§impl Default for LabelColor
impl Default for LabelColor
Source§fn default() -> LabelColor
fn default() -> LabelColor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LabelColor
impl<'de> Deserialize<'de> for LabelColor
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 PartialEq for LabelColor
impl PartialEq for LabelColor
Source§fn eq(&self, other: &LabelColor) -> bool
fn eq(&self, other: &LabelColor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LabelColor
impl Serialize for LabelColor
impl StructuralPartialEq for LabelColor
Auto Trait Implementations§
impl Freeze for LabelColor
impl RefUnwindSafe for LabelColor
impl Send for LabelColor
impl Sync for LabelColor
impl Unpin for LabelColor
impl UnsafeUnpin for LabelColor
impl UnwindSafe for LabelColor
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