Struct Config Diagnostic
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct ConfigDiagnostic {
pub level: i32,
pub code: String,
pub component: Option<String>,
pub field: Option<String>,
pub message: String,
}
Structured configuration warning or error with optional component and field location.
Fields
level: i32
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.
Implementations
impl ConfigDiagnostic
impl ConfigDiagnostic
level
pub fn level(&self) -> ConfigDiagnosticLevel
Returns the enum value of level, or the default if the field is set to an invalid enum value.
set_level
pub fn set_level(&mut self, value: ConfigDiagnosticLevel)
Sets level to the provided enum value.
component
pub fn component(&self) -> &str
Returns the value of component, or the default value if component is unset.
field
pub fn field(&self) -> &str
Returns the value of field, or the default value if field is unset.
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 Default for ConfigDiagnostic
impl Default for ConfigDiagnostic
default
fn default() -> Self
impl Hash for ConfigDiagnostic
impl Hash for ConfigDiagnostic
hash
fn hash<__H: Hasher>(&self, state: &mut __H)
hash_slice
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,
impl Message for ConfigDiagnostic
impl Message for ConfigDiagnostic
encoded_len
fn encoded_len(&self) -> usize
clear
fn clear(&mut self)
encode
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
encode_to_vec
fn encode_to_vec(&self) -> Vec<u8> where
Self: Sized,
encode_length_delimited
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
encode_length_delimited_to_vec
fn encode_length_delimited_to_vec(&self) -> Vec<u8> where
Self: Sized,
decode
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
decode_length_delimited
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
merge
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
merge_length_delimited
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
impl Name for ConfigDiagnostic
impl Name for ConfigDiagnostic
NAME
const NAME: &'static str = "ConfigDiagnostic"
PACKAGE
const PACKAGE: &'static str = "nvidia.nemo.relay.worker.v1"
full_name
fn full_name() -> String
type_url
fn type_url() -> String
impl PartialEq for ConfigDiagnostic
impl PartialEq for ConfigDiagnostic
eq
fn eq(&self, other: &ConfigDiagnostic) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl WireValue<ConfigDiagnostic> for ConfigDiagnostic
impl WireValue<ConfigDiagnostic> for ConfigDiagnostic
to_wire
fn to_wire(self) -> Result<ConfigDiagnostic>
from_wire
fn from_wire(value: ConfigDiagnostic) -> Result<Self>
impl Eq for ConfigDiagnostic
impl Eq for ConfigDiagnostic
impl StructuralPartialEq for ConfigDiagnostic
impl StructuralPartialEq for ConfigDiagnostic