pub struct AuditNotification {
pub title: String,
pub project: String,
pub chain: String,
pub overall_score: Option<u8>,
pub risk: Option<String>,
pub success: bool,
pub findings: Vec<Finding>,
}Expand description
Summary of an audit/deployment run to be notified about.
Fields§
§title: StringMessage title (e.g. “Forge Guard Audit”, “Deployment blocked”).
project: StringProject name.
chain: StringTarget chain.
overall_score: Option<u8>Overall security score (0–100), if known.
risk: Option<String>Risk level label, if known.
success: boolWhether the run succeeded (deployment approved / audit complete).
findings: Vec<Finding>Findings associated with the run.
Implementations§
Source§impl AuditNotification
impl AuditNotification
Sourcepub fn max_severity(&self) -> Severity
pub fn max_severity(&self) -> Severity
The highest severity present in the findings.
Trait Implementations§
Source§impl Clone for AuditNotification
impl Clone for AuditNotification
Source§fn clone(&self) -> AuditNotification
fn clone(&self) -> AuditNotification
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 moreAuto Trait Implementations§
impl Freeze for AuditNotification
impl RefUnwindSafe for AuditNotification
impl Send for AuditNotification
impl Sync for AuditNotification
impl Unpin for AuditNotification
impl UnsafeUnpin for AuditNotification
impl UnwindSafe for AuditNotification
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more