Struct Config Diagnostic

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct ConfigDiagnostic {
    pub level: DiagnosticLevel,
    pub code: String,
    pub component: Option<String>,
    pub field: Option<String>,
    pub message: String,
}

One validation or compatibility diagnostic.

Fields

level: DiagnosticLevel

Severity level for the diagnostic.

code: String

Stable 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: String

Human-readable diagnostic message.

Trait Implementations

impl Clone for ConfigDiagnostic

impl Clone for ConfigDiagnostic

clone

fn clone(&self) -> ConfigDiagnostic

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for ConfigDiagnostic

impl Debug for ConfigDiagnostic

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for ConfigDiagnostic

impl<'de> Deserialize<'de> for ConfigDiagnostic

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl Serialize for ConfigDiagnostic

impl Serialize for ConfigDiagnostic

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,