pub trait UriPathExtensions {
type Output;
// Required methods
fn add_path_prefix(self, path: &str) -> Result<Self::Output, Error>;
fn add_path_suffix(self, path: &str) -> Result<Self::Output, Error>;
}Expand description
A trait for adding prefixes and suffixes to the path component of a URI.
This trait provides methods to modify the path of a URI by appending a prefix or a suffix, with strict validation rules for the provided paths.
§Errors
The methods return an Error if the provided prefix or suffix does not meet the validation
rules.