pub trait SomeOrStringWrapper {
Show 15 methods
// Required methods
fn required(&self) -> bool;
fn accepted(&self) -> bool;
fn email(&self) -> bool;
fn url(&self) -> bool;
fn phone(&self) -> bool;
fn non_control_character(&self) -> bool;
fn ip(&self) -> bool;
fn ip_v4(&self) -> bool;
fn ip_v6(&self) -> bool;
fn credit_card(&self) -> bool;
fn rule_contains(&self, needle: String) -> bool;
fn in<B: ToString>(&self, haystack: Vec<B>) -> bool;
fn length_min(&self, min: usize) -> bool;
fn length_max(&self, max: usize) -> bool;
fn length_eq(&self, eq: usize) -> bool;
}Required Methods§
fn required(&self) -> bool
fn accepted(&self) -> bool
fn email(&self) -> bool
fn url(&self) -> bool
fn phone(&self) -> bool
fn non_control_character(&self) -> bool
fn ip(&self) -> bool
fn ip_v4(&self) -> bool
fn ip_v6(&self) -> bool
fn credit_card(&self) -> bool
fn rule_contains(&self, needle: String) -> bool
fn in<B: ToString>(&self, haystack: Vec<B>) -> bool
fn length_min(&self, min: usize) -> bool
fn length_max(&self, max: usize) -> bool
fn length_eq(&self, eq: usize) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.