fn from_str(s: &str) -> Result<ChallengeScheme, ()> {
        use self::ChallengeScheme::*;
        Ok(match s.to_ascii_lowercase().as_str() {
            "basic" => Basic,
            "bearer" => Bearer,
            "digest" => Digest,
            other => Other(other.to_string()),
        })
    }
/// Infallible conversion, as any unrecognised schemes are parsed into a
/// ChallengeScheme::Other(String)
Infallible conversion, as any unrecognised schemes are parsed into a
ChallengeScheme::Other(String)
Infallible conversion as any unrecognised schemes are parsed into a ChallengeScheme :: Other ( String )
fn from_str(s: &str) -> Result<ChallengeScheme, ()> {
        use self::ChallengeScheme::*;
        Ok(match s.to_ascii_lowercase().as_str() {
            "basic" => Basic,
            "bearer" => Bearer,
            "digest" => Digest,
            other => Other(other.to_string()),
        })
    }
fn from_str ( s : & str ) -> Result < ChallengeScheme , ( ) > { use self :: ChallengeScheme :: * ; Ok ( match s . to_ascii_lowercase ( ) . as_str ( ) { " " => Basic , " " => Bearer , " " => Digest , other => Other ( other . to_string ( ) ) , } ) }
Infallible conversion, as any unrecognised schemes are parsed into a
ChallengeScheme::Other(String)
Infallible conversion as any unrecognised schemes are parsed into a ChallengeScheme :: Other ( String )
s
&str
s
&str