pub enum Securable {
Table {
full_name: String,
},
Volume {
full_name: String,
},
Path {
url: Url,
},
}Available on crate feature
server only.Expand description
What a request targets, parsed from the {securable} path segment.
The wire encoding is a single typed, colon-delimited path segment:
table:<catalog.schema.table>vol:<catalog.schema.volume>path:<percent-encoded cloud URL>(e.g.path:s3%3A%2F%2Fbucket%2Fprefix%2F)
Keeping the securable in one path segment (no unescaped /) lets the router’s
{*key} wildcard cleanly capture the object key as the remaining path.
Variants§
Table
A managed/external table, by fully-qualified catalog.schema.table name.
Volume
A volume, by fully-qualified catalog.schema.volume name.
Path
A raw cloud storage URL (s3://, abfss://, gs://, …).
Implementations§
Source§impl Securable
impl Securable
Sourcepub fn parse(segment: &str) -> ProxyResult<Securable>
pub fn parse(segment: &str) -> ProxyResult<Securable>
Parse a {securable} path segment (already percent-decoded by the router’s
path extractor) into a Securable.
Returns ProxyError::InvalidArgument
for an unknown kind prefix, an empty identifier, or a path: value that is
not a valid URL.
Trait Implementations§
impl Eq for Securable
impl StructuralPartialEq for Securable
Auto Trait Implementations§
impl Freeze for Securable
impl RefUnwindSafe for Securable
impl Send for Securable
impl Sync for Securable
impl Unpin for Securable
impl UnsafeUnpin for Securable
impl UnwindSafe for Securable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more