pub struct JsonDiagnostic {
pub code: String,
pub severity: String,
pub range: Option<JsonRange>,
pub message: String,
pub hint: Option<String>,
}Expand description
JSON diagnostic format for machine parsing (CI/CD tools)
Fields§
§code: String§severity: String§range: Option<JsonRange>§message: String§hint: Option<String>Implementations§
Source§impl JsonDiagnostic
impl JsonDiagnostic
pub fn from_validation_error(error: &ValidationError) -> Self
Trait Implementations§
Source§impl Clone for JsonDiagnostic
impl Clone for JsonDiagnostic
Source§impl Debug for JsonDiagnostic
impl Debug for JsonDiagnostic
Source§impl<'de> Deserialize<'de> for JsonDiagnostic
impl<'de> Deserialize<'de> for JsonDiagnostic
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 Forget for JsonDiagnostic
impl Freeze for JsonDiagnostic
impl Move for JsonDiagnostic
impl RefUnwindSafe for JsonDiagnostic
impl Send for JsonDiagnosticwhere
RawVecInner: Send,
impl Sync for JsonDiagnosticwhere
RawVecInner: Sync,
impl Unpin for JsonDiagnostic
impl UnsafeUnpin for JsonDiagnostic
impl UnwindSafe for JsonDiagnosticwhere
RawVecInner: UnwindSafe,
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