pub struct Location { /* private fields */ }Implementations§
Source§impl Location
impl Location
pub fn new(bucket: impl Into<String>, path: impl Into<String>) -> Self
pub fn bucket(&self) -> &str
pub fn path(&self) -> &str
pub fn is_root(&self) -> bool
pub fn full_server_url(&self) -> String
pub fn bucket_only_server_url(&self) -> String
pub fn from_bucket_spec(bucket_spec: &str, host: &str) -> StorageResult<Self>
pub fn from_url(url: &str, host: &str) -> StorageResult<Self>
Trait Implementations§
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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
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.