pub struct Advisory {
pub rule_id: String,
pub category: String,
pub severity: AdvisorySeverity,
pub object: String,
pub explanation: String,
pub fix_sql: Option<String>,
}Expand description
A single advisory finding.
Fields§
§rule_id: StringRule ID (e.g., “A001”).
category: StringCategory of the advisory.
severity: AdvisorySeveritySeverity level.
object: StringAffected database object (e.g., “users.email”, “idx_name”).
explanation: StringHuman-readable explanation of the issue.
fix_sql: Option<String>Generated SQL to fix the issue.
Trait Implementations§
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