pub struct Warning {
pub level: WarningLevel,
pub code: String,
pub citation_id: Option<String>,
pub ref_id: Option<String>,
pub message: String,
}Expand description
A structured diagnostic warning returned alongside formatted output.
Fields§
§level: WarningLevelThe severity level.
code: StringA machine-readable error code.
citation_id: Option<String>The citation ID this warning pertains to, if any.
ref_id: Option<String>The reference ID this warning pertains to, if any.
message: StringA human-readable diagnostic message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Warning
impl<'de> Deserialize<'de> for Warning
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 Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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