http crate can redacted my redacted rn
@star@amazonawaws.comErrorKind isn't pub and has no accessors. Meaning, if you were to want to try and find out why exactly parsing your str into a Uri failed, you have no way to do so programmatically.
@star@amazonawaws.compub fn new(input: &str) -> Result<Self, NamespaceError> {
match Uri::from_str(input) {
Ok(uri) => Ok(Self(uri)),
Err(err) => Uri::from_str(&format!("https://{input}"))
.map_err(|_| NamespaceError::InvalidUri(err))
.map(Self),
}
}