pub struct SecurityGate<Mode> {
pub mode: Mode,
pub verdict: SecurityGateVerdict,
pub new_count: usize,
}Expand description
The gate block on SecurityOutput, present only when --gate <mode> ran.
Invariant: verdict == Fail IFF exit code 8 IFF new_count > 0.
Fields§
§mode: ModeGate mode that was selected on the command line.
verdict: SecurityGateVerdictGate outcome for this run.
new_count: usizeNumber of candidates matching the selected gate mode.
Trait Implementations§
Source§impl<Mode: Clone> Clone for SecurityGate<Mode>
impl<Mode: Clone> Clone for SecurityGate<Mode>
impl<Mode: Copy> Copy for SecurityGate<Mode>
Source§impl<Mode: Debug> Debug for SecurityGate<Mode>
impl<Mode: Debug> Debug for SecurityGate<Mode>
Source§impl<'de, Mode> Deserialize<'de> for SecurityGate<Mode>where
Mode: Deserialize<'de>,
impl<'de, Mode> Deserialize<'de> for SecurityGate<Mode>where
Mode: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<Mode> Freeze for SecurityGate<Mode>where
Mode: Freeze,
impl<Mode> RefUnwindSafe for SecurityGate<Mode>where
Mode: RefUnwindSafe,
impl<Mode> Send for SecurityGate<Mode>where
Mode: Send,
impl<Mode> Sync for SecurityGate<Mode>where
Mode: Sync,
impl<Mode> Unpin for SecurityGate<Mode>where
Mode: Unpin,
impl<Mode> UnsafeUnpin for SecurityGate<Mode>where
Mode: UnsafeUnpin,
impl<Mode> UnwindSafe for SecurityGate<Mode>where
Mode: UnwindSafe,
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