pub struct ChecklistItem<'a> {
pub label: &'a str,
pub description: Option<&'a str>,
pub kind: FeedbackKind,
pub status_label: Option<&'a str>,
pub icon_html: Option<TrustedHtml<'a>>,
}Fields§
§label: &'a str§description: Option<&'a str>§kind: FeedbackKind§status_label: Option<&'a str>§icon_html: Option<TrustedHtml<'a>>Implementations§
Source§impl<'a> ChecklistItem<'a>
impl<'a> ChecklistItem<'a>
pub const fn new(label: &'a str, kind: FeedbackKind) -> Self
pub const fn info(label: &'a str) -> Self
pub const fn ok(label: &'a str) -> Self
pub const fn warn(label: &'a str) -> Self
pub const fn error(label: &'a str) -> Self
pub const fn with_description(self, description: &'a str) -> Self
pub const fn with_status_label(self, status_label: &'a str) -> Self
pub const fn with_icon(self, icon_html: TrustedHtml<'a>) -> Self
pub fn class_name(&self) -> &'static str
pub fn status_text(&self) -> &'a str
Trait Implementations§
Source§impl<'a> Clone for ChecklistItem<'a>
impl<'a> Clone for ChecklistItem<'a>
Source§fn clone(&self) -> ChecklistItem<'a>
fn clone(&self) -> ChecklistItem<'a>
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<'a> Debug for ChecklistItem<'a>
impl<'a> Debug for ChecklistItem<'a>
Source§impl<'a> PartialEq for ChecklistItem<'a>
impl<'a> PartialEq for ChecklistItem<'a>
Source§fn eq(&self, other: &ChecklistItem<'a>) -> bool
fn eq(&self, other: &ChecklistItem<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for ChecklistItem<'a>
impl<'a> Eq for ChecklistItem<'a>
impl<'a> StructuralPartialEq for ChecklistItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChecklistItem<'a>
impl<'a> RefUnwindSafe for ChecklistItem<'a>
impl<'a> Send for ChecklistItem<'a>
impl<'a> Sync for ChecklistItem<'a>
impl<'a> Unpin for ChecklistItem<'a>
impl<'a> UnsafeUnpin for ChecklistItem<'a>
impl<'a> UnwindSafe for ChecklistItem<'a>
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