pub struct StructuredDiagnostic {
pub code: DiagnosticCode,
pub feature_id: Option<String>,
pub tier: Option<String>,
pub message: String,
pub suggestion: Option<String>,
}Expand description
A structured diagnostic produced by the pproxy compatibility layer.
Carries a stable DiagnosticCode, optional manifest feature reference,
optional compatibility tier, a human-readable message, and an optional
suggestion for an eggress-native alternative.
Fields§
§code: DiagnosticCodeStable diagnostic code.
feature_id: Option<String>Manifest feature id, if this diagnostic maps to a known feature.
tier: Option<String>Compatibility tier: “drop_in”, “compatible_with_warning”, “native_equivalent”, “intentional_non_parity”, or “unsupported”.
message: StringHuman-readable description of the issue.
suggestion: Option<String>Suggested eggress-native alternative, if applicable.
Trait Implementations§
Source§impl Clone for StructuredDiagnostic
impl Clone for StructuredDiagnostic
Source§fn clone(&self) -> StructuredDiagnostic
fn clone(&self) -> StructuredDiagnostic
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 StructuredDiagnostic
impl Debug for StructuredDiagnostic
Source§impl Display for StructuredDiagnostic
impl Display for StructuredDiagnostic
Source§impl From<&CompatWarning> for StructuredDiagnostic
impl From<&CompatWarning> for StructuredDiagnostic
Source§fn from(warn: &CompatWarning) -> Self
fn from(warn: &CompatWarning) -> Self
Converts to this type from the input type.
Source§impl From<CompatError> for StructuredDiagnostic
impl From<CompatError> for StructuredDiagnostic
Source§fn from(err: CompatError) -> Self
fn from(err: CompatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StructuredDiagnostic
impl RefUnwindSafe for StructuredDiagnostic
impl Send for StructuredDiagnostic
impl Sync for StructuredDiagnostic
impl Unpin for StructuredDiagnostic
impl UnsafeUnpin for StructuredDiagnostic
impl UnwindSafe for StructuredDiagnostic
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