pub struct LabelColorConfig {
pub bg: String,
pub fg: String,
}Expand description
Colour pair (background + foreground) for a badge label in the Inspector panel.
Colour values are the same strings accepted by AppConfig::parse_color:
named colours ("red", "cyan", …) or hex codes ("#ff6600").
Fields§
§bg: StringBackground colour of the badge.
fg: StringForeground (text) colour of the badge.
Trait Implementations§
Source§impl Clone for LabelColorConfig
impl Clone for LabelColorConfig
Source§fn clone(&self) -> LabelColorConfig
fn clone(&self) -> LabelColorConfig
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 LabelColorConfig
impl Debug for LabelColorConfig
Source§impl<'de> Deserialize<'de> for LabelColorConfig
impl<'de> Deserialize<'de> for LabelColorConfig
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 LabelColorConfig
impl RefUnwindSafe for LabelColorConfig
impl Send for LabelColorConfig
impl Sync for LabelColorConfig
impl Unpin for LabelColorConfig
impl UnsafeUnpin for LabelColorConfig
impl UnwindSafe for LabelColorConfig
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