Trait Checker
Source pub trait Checker: Send + Sync {
// Required methods
fn entity(&self) -> &str;
fn check_and_fix(
&self,
ctx: &UserContext,
record: &mut Record,
location: &ObjectLocation,
results: &mut CheckResults,
);
// Provided methods
fn required(
&self,
record: &Record,
field: &str,
location: &ObjectLocation,
results: &mut CheckResults,
) { ... }
fn min_string_length(
&self,
record: &Record,
field: &str,
min_len: usize,
location: &ObjectLocation,
results: &mut CheckResults,
) { ... }
fn max_string_length(
&self,
record: &Record,
field: &str,
max_len: usize,
location: &ObjectLocation,
results: &mut CheckResults,
) { ... }
}