pub struct StatusField {
pub label: String,
pub value: String,
pub variant: String,
}Expand description
A key-value status field displayed as a badge in the web UI status bar.
Fields§
§label: StringShort label (e.g., “Drafted”).
value: StringDisplay value (e.g., “3”).
variant: StringCSS class variant for styling (e.g., “info”, “success”, “warning”, “error”).
Trait Implementations§
Source§impl Clone for StatusField
impl Clone for StatusField
Source§fn clone(&self) -> StatusField
fn clone(&self) -> StatusField
Returns a duplicate of the value. Read more
1.0.0 · 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 StatusField
impl Debug for StatusField
Auto Trait Implementations§
impl Freeze for StatusField
impl RefUnwindSafe for StatusField
impl Send for StatusField
impl Sync for StatusField
impl Unpin for StatusField
impl UnsafeUnpin for StatusField
impl UnwindSafe for StatusField
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