pub struct LogReport {
pub severity: Severity,
pub confidence: Confidence,
pub key: ErrorKey,
pub msg: String,
pub info: Option<String>,
pub pointers: Vec<PointedMessage>,
}Expand description
Describes a report about a potentially problematic situation that can be logged.
Fields§
§severity: SeverityUsed for choosing output colors and for filtering reports.
confidence: ConfidenceMostly used for filtering reports.
key: ErrorKeyDefines the problem category. Used for filtering reports.
msg: StringThe primary error message. A short description of the problem.
info: Option<String>Optional info message to be printed at the end.
pointers: Vec<PointedMessage>Should contain one or more elements.
Implementations§
source§impl LogReport
impl LogReport
sourcepub fn primary(&self) -> &PointedMessage
pub fn primary(&self) -> &PointedMessage
Returns the primary pointer.
sourcepub fn indentation(&self) -> usize
pub fn indentation(&self) -> usize
Returns the length of the longest line number.
Trait Implementations§
source§impl PartialEq for LogReport
impl PartialEq for LogReport
impl Eq for LogReport
impl StructuralEq for LogReport
impl StructuralPartialEq for LogReport
Auto Trait Implementations§
impl RefUnwindSafe for LogReport
impl Send for LogReport
impl Sync for LogReport
impl Unpin for LogReport
impl UnwindSafe for LogReport
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