pub struct FeedbackMessage {
pub level: FeedbackLevel,
pub category: FeedbackCategory,
pub message: String,
}Expand description
Feedback message with severity level
Fields§
§level: FeedbackLevel§category: FeedbackCategory§message: StringImplementations§
Source§impl FeedbackMessage
impl FeedbackMessage
pub fn info(category: FeedbackCategory, message: impl Into<String>) -> Self
pub fn success(category: FeedbackCategory, message: impl Into<String>) -> Self
pub fn warning(category: FeedbackCategory, message: impl Into<String>) -> Self
pub fn error(category: FeedbackCategory, message: impl Into<String>) -> Self
pub fn debug(category: FeedbackCategory, message: impl Into<String>) -> Self
Sourcepub fn format_line(&self) -> String
pub fn format_line(&self) -> String
Format for display with prefix
Trait Implementations§
Source§impl Clone for FeedbackMessage
impl Clone for FeedbackMessage
Source§fn clone(&self) -> FeedbackMessage
fn clone(&self) -> FeedbackMessage
Returns a copy 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 FeedbackMessage
impl RefUnwindSafe for FeedbackMessage
impl Send for FeedbackMessage
impl Sync for FeedbackMessage
impl Unpin for FeedbackMessage
impl UnwindSafe for FeedbackMessage
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