Closed duesee closed 5 months ago
Oh, we can't as we want... FromStr can't return anything with a reference to the input string.
FromStr
impl FromStr for AuthMechanism<'static> { type Err = ValidationError; fn from_str(s: &str) -> Result<Self, Self::Err> { AuthMechanism::try_from(s.to_string()) } }
Close enough? See v2 branch.
v2
Oh, we can't as we want...
FromStr
can't return anything with a reference to the input string.Close enough? See
v2
branch.