pub struct AnalysisDiagnostic {
pub id: String,
pub severity: DiagnosticSeverity,
pub category: DiagnosticCategory,
pub message: String,
pub code: Option<i32>,
pub code_name: Option<String>,
pub diagram_type: Option<String>,
pub span: Option<DiagnosticSpan>,
pub related: Vec<DiagnosticRelated>,
pub help: Option<String>,
pub fixes: Vec<DiagnosticFix>,
}Fields§
§id: String§severity: DiagnosticSeverity§category: DiagnosticCategory§message: String§code: Option<i32>§code_name: Option<String>§diagram_type: Option<String>§span: Option<DiagnosticSpan>§help: Option<String>§fixes: Vec<DiagnosticFix>Implementations§
Source§impl AnalysisDiagnostic
impl AnalysisDiagnostic
pub fn new( id: impl Into<String>, severity: DiagnosticSeverity, category: DiagnosticCategory, message: impl Into<String>, ) -> Self
pub fn error( id: impl Into<String>, category: DiagnosticCategory, message: impl Into<String>, ) -> Self
pub fn with_code(self, code: i32, code_name: impl Into<String>) -> Self
pub fn with_diagram_type(self, diagram_type: impl Into<String>) -> Self
pub const fn with_span(self, span: DiagnosticSpan) -> Self
pub fn with_help(self, help: impl Into<String>) -> Self
pub fn with_fix(self, fix: DiagnosticFix) -> Self
pub fn with_fixes(self, fixes: impl IntoIterator<Item = DiagnosticFix>) -> Self
Trait Implementations§
Source§impl Clone for AnalysisDiagnostic
impl Clone for AnalysisDiagnostic
Source§fn clone(&self) -> AnalysisDiagnostic
fn clone(&self) -> AnalysisDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnalysisDiagnostic
impl Debug for AnalysisDiagnostic
Source§impl<'de> Deserialize<'de> for AnalysisDiagnostic
impl<'de> Deserialize<'de> for AnalysisDiagnostic
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
impl Eq for AnalysisDiagnostic
Source§impl PartialEq for AnalysisDiagnostic
impl PartialEq for AnalysisDiagnostic
Source§fn eq(&self, other: &AnalysisDiagnostic) -> bool
fn eq(&self, other: &AnalysisDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnalysisDiagnostic
impl Serialize for AnalysisDiagnostic
impl StructuralPartialEq for AnalysisDiagnostic
Auto Trait Implementations§
impl Freeze for AnalysisDiagnostic
impl RefUnwindSafe for AnalysisDiagnostic
impl Send for AnalysisDiagnostic
impl Sync for AnalysisDiagnostic
impl Unpin for AnalysisDiagnostic
impl UnsafeUnpin for AnalysisDiagnostic
impl UnwindSafe for AnalysisDiagnostic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.