Skip to main content

from_canonical_uri

Function from_canonical_uri 

Source
pub fn from_canonical_uri(uri: &str) -> Result<S3Location, AppError>
Expand description

Parse a brows3r:// URI back into an S3Location.

Returns AppError::Validation when the URI is malformed (wrong scheme, missing profile id, missing bucket, etc.). The resulting S3Location uses an empty prefix and sets key to Some with the decoded key/prefix string (callers that need a directory prefix can normalise accordingly).