pub struct SecurityReportOptions<T, H, F>{
pub excludes: Vec<VaultId>,
pub database_handler: Option<H>,
pub target: Option<SecurityReportTarget>,
}Expand description
Options for security report generation.
Fields§
§excludes: Vec<VaultId>Exclude these folders from report generation.
database_handler: Option<H>Database handler that can check for breaches based on the password hashes (SHA-1).
The handler is passed a list of passwords hashes
and must return a list of T the same length as
the input.
target: Option<SecurityReportTarget>Target for report generation.
This is useful when providing a UI to resolve security report issues and changes have been made; the caller can generate a new report for the changed item and decide if the item is now deemed safe.
When a target is given excludes are ignored.
Auto Trait Implementations§
impl<T, H, F> Freeze for SecurityReportOptions<T, H, F>where
H: Freeze,
impl<T, H, F> RefUnwindSafe for SecurityReportOptions<T, H, F>where
H: RefUnwindSafe,
impl<T, H, F> Send for SecurityReportOptions<T, H, F>where
H: Send,
impl<T, H, F> Sync for SecurityReportOptions<T, H, F>where
H: Sync,
impl<T, H, F> Unpin for SecurityReportOptions<T, H, F>where
H: Unpin,
impl<T, H, F> UnwindSafe for SecurityReportOptions<T, H, F>where
H: 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
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