pub fn new(
        scheme: ChallengeScheme,
        parameters: HashMap<String, String>,
    ) -> Result<Challenge, ChallengeError> {
        // TODO: actually do validation based on given challenge scheme
        Ok(Challenge { scheme, parameters })
    }
/// Construct a new WWW-Authenticate Challenge, returning an Error if given
/// parameters are incompatible with the specified scheme
Construct a new WWW-Authenticate Challenge, returning an Error if given
parameters are incompatible with the specified scheme
Construct a new WWW - Authenticate Challenge returning an Error if given parameters are incompatible with the specified scheme
pub fn new(
        scheme: ChallengeScheme,
        parameters: HashMap<String, String>,
    ) -> Result<Challenge, ChallengeError> {
        // TODO: actually do validation based on given challenge scheme
        Ok(Challenge { scheme, parameters })
    }
pub fn new ( scheme : ChallengeScheme , parameters : HashMap < String , String > , ) -> Result < Challenge , ChallengeError > { // TODO: actually do validation based on given challenge scheme Ok ( Challenge { scheme , parameters } ) }
Construct a new WWW-Authenticate Challenge, returning an Error if given
parameters are incompatible with the specified scheme
Construct a new WWW - Authenticate Challenge returning an Error if given parameters are incompatible with the specified scheme
scheme
ChallengeScheme
parameters
HashMap<String, String>
scheme
ChallengeScheme
parameters
HashMap<String, String>