Trait validators::traits::ValidateString[][src]

pub trait ValidateString {
    type Error;
    type Output;
    fn parse_string<S: Into<String>>(s: S) -> Result<Self::Output, Self::Error>;
fn parse_str<S: AsRef<str>>(s: S) -> Result<Self::Output, Self::Error>;
fn validate_str<S: AsRef<str>>(s: S) -> Result<(), Self::Error>; }

Validate and deserialize strings.

Associated Types

Loading content...

Required methods

fn parse_string<S: Into<String>>(s: S) -> Result<Self::Output, Self::Error>[src]

fn parse_str<S: AsRef<str>>(s: S) -> Result<Self::Output, Self::Error>[src]

fn validate_str<S: AsRef<str>>(s: S) -> Result<(), Self::Error>[src]

Loading content...

Implementors

Loading content...