pub struct ConfigDiagnostic {
pub level: DiagnosticLevel,
pub code: String,
pub component: Option<String>,
pub field: Option<String>,
pub message: String,
}Expand description
Structured validation diagnostic for plugin validation.
Fields§
§level: DiagnosticLevelSeverity level for the diagnostic.
code: StringStable diagnostic code suitable for machine checks.
component: Option<String>Optional component identifier associated with the diagnostic.
field: Option<String>Optional field path associated with the diagnostic.
message: StringHuman-readable diagnostic message.
Trait Implementations§
Source§impl Clone for ConfigDiagnostic
impl Clone for ConfigDiagnostic
Source§fn clone(&self) -> ConfigDiagnostic
fn clone(&self) -> ConfigDiagnostic
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 ConfigDiagnostic
impl Debug for ConfigDiagnostic
Source§impl<'de> Deserialize<'de> for ConfigDiagnostic
impl<'de> Deserialize<'de> for ConfigDiagnostic
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigDiagnostic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigDiagnostic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConfigDiagnostic
Source§impl PartialEq for ConfigDiagnostic
impl PartialEq for ConfigDiagnostic
Source§fn eq(&self, other: &ConfigDiagnostic) -> bool
fn eq(&self, other: &ConfigDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfigDiagnostic
impl Serialize for ConfigDiagnostic
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ConfigDiagnostic
Auto Trait Implementations§
impl Freeze for ConfigDiagnostic
impl RefUnwindSafe for ConfigDiagnostic
impl Send for ConfigDiagnostic
impl Sync for ConfigDiagnostic
impl Unpin for ConfigDiagnostic
impl UnsafeUnpin for ConfigDiagnostic
impl UnwindSafe for ConfigDiagnostic
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