Struct opendal::OperatorMetadata
source · pub struct OperatorMetadata { /* private fields */ }
Expand description
Metadata for operator, users can use this metadata to get information of operator.
Implementations§
source§impl OperatorMetadata
impl OperatorMetadata
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§
source§impl Clone for OperatorMetadata
impl Clone for OperatorMetadata
source§fn clone(&self) -> OperatorMetadata
fn clone(&self) -> OperatorMetadata
Returns a copy of the value. Read more
1.0.0 · 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 OperatorMetadata
impl Debug for OperatorMetadata
source§impl Default for OperatorMetadata
impl Default for OperatorMetadata
source§fn default() -> OperatorMetadata
fn default() -> OperatorMetadata
Returns the “default value” for a type. Read more