pub struct StatusDeckItem {
pub id: String,
pub label: String,
pub value: Option<String>,
pub hint: Option<String>,
pub kind: StatusDeckItemKind,
}Fields§
§id: String§label: String§value: Option<String>§hint: Option<String>§kind: StatusDeckItemKindImplementations§
Source§impl StatusDeckItem
impl StatusDeckItem
pub fn toggle(id: &str, label: &str, active: bool) -> Self
pub fn runtime(id: &str, label: &str, value: &str) -> Self
pub fn key(id: &str, label: &str, value: &str) -> Self
pub fn validation( id: &str, command: &str, state: ValidationState, exit_code: Option<i32>, hint: &str, ) -> Self
pub fn text(id: &str, label: &str, value: Option<&str>) -> Self
pub fn with_hint(self, hint: &str) -> Self
Trait Implementations§
Source§impl Clone for StatusDeckItem
impl Clone for StatusDeckItem
Source§fn clone(&self) -> StatusDeckItem
fn clone(&self) -> StatusDeckItem
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 StatusDeckItem
impl Debug for StatusDeckItem
impl Eq for StatusDeckItem
Source§impl PartialEq for StatusDeckItem
impl PartialEq for StatusDeckItem
Source§fn eq(&self, other: &StatusDeckItem) -> bool
fn eq(&self, other: &StatusDeckItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatusDeckItem
Auto Trait Implementations§
impl Freeze for StatusDeckItem
impl RefUnwindSafe for StatusDeckItem
impl Send for StatusDeckItem
impl Sync for StatusDeckItem
impl Unpin for StatusDeckItem
impl UnsafeUnpin for StatusDeckItem
impl UnwindSafe for StatusDeckItem
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