#[non_exhaustive]pub struct CatalogDiagnostic {
pub code: DiagnosticCode,
pub severity: DiagnosticSeverity,
pub template: String,
pub member: Option<String>,
pub message: String,
}Expand description
One structural or schema-aware defect found in a catalog snapshot.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: DiagnosticCodeCategory of the defect.
severity: DiagnosticSeverityHow serious the defect is.
template: StringName of the set template the defect was found in.
member: Option<String>Dotted member path within the template, absent for template-level defects.
message: StringHuman-readable description of the defect.
Trait Implementations§
Source§impl Clone for CatalogDiagnostic
impl Clone for CatalogDiagnostic
Source§fn clone(&self) -> CatalogDiagnostic
fn clone(&self) -> CatalogDiagnostic
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 CatalogDiagnostic
impl Debug for CatalogDiagnostic
impl Eq for CatalogDiagnostic
Source§impl PartialEq for CatalogDiagnostic
impl PartialEq for CatalogDiagnostic
impl StructuralPartialEq for CatalogDiagnostic
Auto Trait Implementations§
impl Freeze for CatalogDiagnostic
impl RefUnwindSafe for CatalogDiagnostic
impl Send for CatalogDiagnostic
impl Sync for CatalogDiagnostic
impl Unpin for CatalogDiagnostic
impl UnsafeUnpin for CatalogDiagnostic
impl UnwindSafe for CatalogDiagnostic
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