pub enum UCReference {
Volume {
catalog: String,
schema: String,
volume: String,
path: String,
},
Table {
catalog: String,
schema: String,
table: String,
},
Path(Url),
}Expand description
A parsed reference to a Unity Catalog securable.
Construct one via UCReference::parse (or its FromStr impl). The
variants map 1:1 to the three credential-vending endpoints exposed by
Unity Catalog.
Variants§
Volume
A Unity Catalog volume, with an optional sub-path inside the volume.
Fields
Table
A Unity Catalog table (referenced by its three-level name).
Path(Url)
A raw cloud URL (s3://, gs://, abfss://, …). Credentials are
vended via the temporary-path-credentials endpoint.
Implementations§
Source§impl UCReference
impl UCReference
Sourcepub fn parse(input: &str) -> Result<Self>
pub fn parse(input: &str) -> Result<Self>
Parse a URL string into a UCReference.
See the module-level documentation for the supported shapes.
Trait Implementations§
Source§impl Clone for UCReference
impl Clone for UCReference
Source§fn clone(&self) -> UCReference
fn clone(&self) -> UCReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UCReference
impl Debug for UCReference
impl Eq for UCReference
Source§impl FromStr for UCReference
impl FromStr for UCReference
Source§impl PartialEq for UCReference
impl PartialEq for UCReference
impl StructuralPartialEq for UCReference
Auto Trait Implementations§
impl Freeze for UCReference
impl RefUnwindSafe for UCReference
impl Send for UCReference
impl Sync for UCReference
impl Unpin for UCReference
impl UnsafeUnpin for UCReference
impl UnwindSafe for UCReference
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