pub struct Badge {
pub icon: String,
pub tone: Tone,
pub hint: String,
pub lit: bool,
pub color: Option<[u8; 3]>,
}Expand description
A glyph badge at an item’s end: a constraint on an element. A click
comes back as PanelEvent::Badge.
Fields§
§icon: String§tone: Tone§hint: StringWords on hover.
lit: boolWhat it stands for is in hand: drawn on a lit ground.
color: Option<[u8; 3]>Its colour as sRGB, in place of the tone’s.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Badge
impl<'de> Deserialize<'de> for Badge
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
impl StructuralPartialEq for Badge
Auto Trait Implementations§
impl Forget for Badge
impl Freeze for Badge
impl Move for Badge
impl RefUnwindSafe for Badge
impl Send for Badge
impl Sync for Badge
impl Unpin for Badge
impl UnsafeUnpin for Badge
impl UnwindSafe for Badge
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