pub struct BadgeStyleConfig {
pub content: WidgetId,
pub background_override: Option<ColorProp>,
}Fields§
§content: WidgetIdPre-built label subtree the pill wraps.
background_override: Option<ColorProp>Caller override for the pill background — None means “use the
recipe default” (SurfaceRole::AccentSubtle). Custom styles may
ignore it.
Trait Implementations§
Source§impl Clone for BadgeStyleConfig
impl Clone for BadgeStyleConfig
Source§fn clone(&self) -> BadgeStyleConfig
fn clone(&self) -> BadgeStyleConfig
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for BadgeStyleConfig
impl !Send for BadgeStyleConfig
impl !Sync for BadgeStyleConfig
impl !UnwindSafe for BadgeStyleConfig
impl Freeze for BadgeStyleConfig
impl Unpin for BadgeStyleConfig
impl UnsafeUnpin for BadgeStyleConfig
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