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

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

type Error

type Output

Loading content...

Required methods

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>

Loading content...

Implementors

Loading content...