Struct opendal::AccessorMetadata
source · [−]pub struct AccessorMetadata { /* private fields */ }
Expand description
Metadata for accessor, users can use this metadata to get information of underlying backend.
Implementations
sourceimpl AccessorMetadata
impl AccessorMetadata
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Name of backend, could be empty if underlying backend doesn’t have namespace concept.
For example:
- name for
s3
=> bucket name - name for
azblob
=> container name
sourcepub fn can_read(&self) -> bool
pub fn can_read(&self) -> bool
Check if current backend supports Accessor::read
or not.
sourcepub fn can_write(&self) -> bool
pub fn can_write(&self) -> bool
Check if current backend supports Accessor::write
or not.
sourcepub fn can_list(&self) -> bool
pub fn can_list(&self) -> bool
Check if current backend supports Accessor::list
or not.
sourcepub fn can_presign(&self) -> bool
pub fn can_presign(&self) -> bool
Check if current backend supports Accessor::presign
or not.
sourcepub fn can_multipart(&self) -> bool
pub fn can_multipart(&self) -> bool
Check if current backend supports multipart operations or not.
sourcepub fn can_blocking(&self) -> bool
pub fn can_blocking(&self) -> bool
Check if current backend supports blocking operations or not.
Trait Implementations
sourceimpl Clone for AccessorMetadata
impl Clone for AccessorMetadata
sourcefn clone(&self) -> AccessorMetadata
fn clone(&self) -> AccessorMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccessorMetadata
impl Debug for AccessorMetadata
sourceimpl Default for AccessorMetadata
impl Default for AccessorMetadata
sourcefn default() -> AccessorMetadata
fn default() -> AccessorMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AccessorMetadata
impl Send for AccessorMetadata
impl Sync for AccessorMetadata
impl Unpin for AccessorMetadata
impl UnwindSafe for AccessorMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more