pub enum StatusMessage {
Initializing,
LoadingRecords,
Error(String),
OperationResult(String),
ViewHelp(ViewHelpContext),
FormFieldHelp {
context: FormFieldContext,
form_type: String,
form_proxied: String,
is_editing: bool,
},
RecordListHelp {
position: usize,
total: usize,
record_name: String,
},
EmptyListHelp,
}Expand description
All possible status message variants
Variants§
Initializing
Initial loading state
LoadingRecords
Loading DNS records
Error(String)
Error message
OperationResult(String)
Operation results (created, updated, deleted, etc.)
ViewHelp(ViewHelpContext)
View-specific contextual help
FormFieldHelp
Form field help
RecordListHelp
Record list navigation help
EmptyListHelp
Empty list help
Implementations§
Source§impl StatusMessage
impl StatusMessage
Sourcepub fn status_type(&self) -> StatusType
pub fn status_type(&self) -> StatusType
Determine if this status should be transient (auto-clearing)
Sourcepub fn is_transient(status_str: &str) -> bool
pub fn is_transient(status_str: &str) -> bool
Check if a status string represents a transient message
Trait Implementations§
Source§impl Clone for StatusMessage
impl Clone for StatusMessage
Source§fn clone(&self) -> StatusMessage
fn clone(&self) -> StatusMessage
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 moreAuto Trait Implementations§
impl Freeze for StatusMessage
impl RefUnwindSafe for StatusMessage
impl Send for StatusMessage
impl Sync for StatusMessage
impl Unpin for StatusMessage
impl UnsafeUnpin for StatusMessage
impl UnwindSafe for StatusMessage
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