pub struct Auth001;Expand description
AUTH-001 — Missing require_auth() on a privileged/admin function.
Trait Implementations§
Source§impl AuditRule for Auth001
impl AuditRule for Auth001
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description of what the rule checks.
Source§fn check(
&self,
scans: &[FnScan],
_ctx: &AuditContext<'_>,
report: &mut AuditReport,
)
fn check( &self, scans: &[FnScan], _ctx: &AuditContext<'_>, report: &mut AuditReport, )
Run the rule over the scanned functions and record findings.
Auto Trait Implementations§
impl Freeze for Auth001
impl RefUnwindSafe for Auth001
impl Send for Auth001
impl Sync for Auth001
impl Unpin for Auth001
impl UnsafeUnpin for Auth001
impl UnwindSafe for Auth001
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