use crate::grouper::DuplicateGroup;
pub struct CheckBreach<'a> {
message: String,
groups: &'a [DuplicateGroup],
of_exact: bool,
}
impl<'a> CheckBreach<'a> {
#[must_use]
pub const fn new(message: String, groups: &'a [DuplicateGroup], of_exact: bool) -> Self {
Self {
message,
groups,
of_exact,
}
}
#[must_use]
pub fn message(&self) -> &str {
&self.message
}
#[must_use]
pub const fn groups(&self) -> &'a [DuplicateGroup] {
self.groups
}
#[must_use]
pub const fn is_of_exact(&self) -> bool {
self.of_exact
}
}