pub struct ReportEvent {
pub severity: Severity,
pub category: String,
pub message: String,
pub detail: Option<String>,
}Expand description
A single report event.
Fields§
§severity: Severity§category: Stringe.g. “parser”, “policy”, “morph”, “export”
message: String§detail: Option<String>Implementations§
Source§impl ReportEvent
impl ReportEvent
pub fn info(category: impl Into<String>, message: impl Into<String>) -> Self
pub fn warning(category: impl Into<String>, message: impl Into<String>) -> Self
pub fn error(category: impl Into<String>, message: impl Into<String>) -> Self
pub fn with_detail(self, detail: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ReportEvent
impl Clone for ReportEvent
Source§fn clone(&self) -> ReportEvent
fn clone(&self) -> ReportEvent
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 moreSource§impl Debug for ReportEvent
impl Debug for ReportEvent
Source§impl<'de> Deserialize<'de> for ReportEvent
impl<'de> Deserialize<'de> for ReportEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReportEvent
impl RefUnwindSafe for ReportEvent
impl Send for ReportEvent
impl Sync for ReportEvent
impl Unpin for ReportEvent
impl UnsafeUnpin for ReportEvent
impl UnwindSafe for ReportEvent
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