Trait mango_orm::models::validation::ValidationModel [−][src]
pub trait ValidationModel { fn check_minlength(
minlength: usize,
value: &str
) -> Result<(), Box<dyn Error>> { ... } fn check_maxlength(
maxlength: usize,
value: &str
) -> Result<(), Box<dyn Error>> { ... } fn accumula_err(
widget: &Widget,
err: &String
) -> Result<String, Box<dyn Error>> { ... } fn regex_validation(
field_type: &str,
value: &str
) -> Result<(), Box<dyn Error>> { ... } fn check_unique(
hash: &str,
field_name: &str,
bson_field_value: &Bson,
coll: &Collection
) -> Result<(), Box<dyn Error>> { ... } }
Provided methods
fn check_minlength(minlength: usize, value: &str) -> Result<(), Box<dyn Error>>
[src]
fn check_maxlength(maxlength: usize, value: &str) -> Result<(), Box<dyn Error>>
[src]
fn accumula_err(widget: &Widget, err: &String) -> Result<String, Box<dyn Error>>
[src]
fn regex_validation(field_type: &str, value: &str) -> Result<(), Box<dyn Error>>
[src]
fn check_unique(
hash: &str,
field_name: &str,
bson_field_value: &Bson,
coll: &Collection
) -> Result<(), Box<dyn Error>>
[src]
hash: &str,
field_name: &str,
bson_field_value: &Bson,
coll: &Collection
) -> Result<(), Box<dyn Error>>