pub struct ExtensionWarning {
pub code: &'static str,
pub severity: WarningSeverity,
pub message: String,
pub cwe: Option<u32>,
}Expand description
A structured warning emitted by an extension.
Warnings carry a machine-readable code, a human-readable message, a
WarningSeverity level, and an optional CWE
identifier for security-related warnings.
Fields§
§code: &'static strMachine-readable warning code (e.g., "TLS_NO_VERIFY", "PLAINTEXT_SECRET").
severity: WarningSeveritySeverity level of this warning.
message: StringHuman-readable description of the warning.
cwe: Option<u32>Optional CWE identifier (e.g., 295 for
“Improper Certificate Validation”).
Trait Implementations§
Source§impl Clone for ExtensionWarning
impl Clone for ExtensionWarning
Source§fn clone(&self) -> ExtensionWarning
fn clone(&self) -> ExtensionWarning
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 ExtensionWarning
impl Debug for ExtensionWarning
Auto Trait Implementations§
impl Freeze for ExtensionWarning
impl RefUnwindSafe for ExtensionWarning
impl Send for ExtensionWarning
impl Sync for ExtensionWarning
impl Unpin for ExtensionWarning
impl UnsafeUnpin for ExtensionWarning
impl UnwindSafe for ExtensionWarning
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