Uri
struct UriA parsed location.
bucket is the authority: an S3/GCS bucket, an Azure container's account
host, or an HTTP host[:port]. key is everything after it with no leading
slash — which is exactly what an S3 request needs, and exactly what a
filesystem path needs once the leading slash is put back for file.
Implements Copyable, Movable, Writable
- Fields
scheme: Stringbucket: Stringkey: Stringquery: Stringraw: String
__init__
def __init__(out self, var scheme: String, var bucket: String, var key: String, var query: String, var raw: String) is_local
def is_local(self) -> Bool is_object_store
def is_object_store(self) -> Bool local_path
def local_path(self) -> String The filesystem path for a file: URI.
file:///a/b and /a/b both give /a/b; a relative bare path is
returned unchanged so tests/fixtures/x keeps working.
canonical
def canonical(self) -> String The location rebuilt from its parts — round-trips parse_uri.
write_to
def write_to(self, mut writer: T)