pub struct BadgeSpec {
pub text: String,
pub tone: Option<Tone>,
pub title: Option<String>,
}Expand description
A badge in a tool’s or agent’s head, or after a picker row’s label.
Fields§
§text: StringThe text.
tone: Option<Tone>The tone.
title: Option<String>A tooltip.
Trait Implementations§
impl Eq for BadgeSpec
impl StructuralPartialEq for BadgeSpec
Auto Trait Implementations§
impl Freeze for BadgeSpec
impl RefUnwindSafe for BadgeSpec
impl Send for BadgeSpec
impl Sync for BadgeSpec
impl Unpin for BadgeSpec
impl UnsafeUnpin for BadgeSpec
impl UnwindSafe for BadgeSpec
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