#[non_exhaustive]pub struct Advisory {
pub patch_id: String,
pub target_template: String,
pub severity: AdvisorySeverity,
pub message: String,
pub evidence: String,
}Expand description
A non-mutating annotation attached to a set template by a Patch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.patch_id: StringId of the Patch that added this advisory.
target_template: StringName of the set template this advisory targets.
severity: AdvisorySeverityHow serious the advisory is.
message: StringAdvisory text shown to callers.
evidence: StringCitation or reference supporting the advisory.
Trait Implementations§
impl Eq for Advisory
impl StructuralPartialEq for Advisory
Auto Trait Implementations§
impl Freeze for Advisory
impl RefUnwindSafe for Advisory
impl Send for Advisory
impl Sync for Advisory
impl Unpin for Advisory
impl UnsafeUnpin for Advisory
impl UnwindSafe for Advisory
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