pub struct SimilarCodeDiagnostic {
pub domain: SimilarCodeDiagnosticDomain,
pub code: String,
pub message: String,
pub path: Option<String>,
}Expand description
Actionable diagnostic without a severity or gate implication.
Fields§
§domain: SimilarCodeDiagnosticDomainStable diagnostic domain.
code: StringStable machine-readable code.
message: StringBounded human-readable explanation.
path: Option<String>Optional project-root-relative path.
Trait Implementations§
Source§impl Clone for SimilarCodeDiagnostic
impl Clone for SimilarCodeDiagnostic
Source§impl Debug for SimilarCodeDiagnostic
impl Debug for SimilarCodeDiagnostic
Source§impl<'de> Deserialize<'de> for SimilarCodeDiagnostic
impl<'de> Deserialize<'de> for SimilarCodeDiagnostic
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 SimilarCodeDiagnostic
Source§impl PartialEq for SimilarCodeDiagnostic
impl PartialEq for SimilarCodeDiagnostic
Source§impl Serialize for SimilarCodeDiagnostic
impl Serialize for SimilarCodeDiagnostic
impl StructuralPartialEq for SimilarCodeDiagnostic
Auto Trait Implementations§
impl Freeze for SimilarCodeDiagnostic
impl RefUnwindSafe for SimilarCodeDiagnostic
impl Send for SimilarCodeDiagnostic
impl Sync for SimilarCodeDiagnostic
impl Unpin for SimilarCodeDiagnostic
impl UnsafeUnpin for SimilarCodeDiagnostic
impl UnwindSafe for SimilarCodeDiagnostic
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§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.