Struct opendal::OperatorInfo
source · pub struct OperatorInfo(_);
Expand description
Metadata for operator, users can use this metadata to get information of operator.
Implementations§
source§impl OperatorInfo
impl OperatorInfo
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 capability(&self) -> Capability
pub fn capability(&self) -> Capability
Get Capability
of operator.
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_copy(&self) -> bool
pub fn can_copy(&self) -> bool
Check if current backend supports Accessor::copy
or not.
sourcepub fn can_rename(&self) -> bool
pub fn can_rename(&self) -> bool
Check if current backend supports Accessor::rename
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_scan(&self) -> bool
pub fn can_scan(&self) -> bool
Check if current backend supports Accessor::scan
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_blocking(&self) -> bool
pub fn can_blocking(&self) -> bool
Check if current backend supports blocking operations or not.
Trait Implementations§
source§impl Clone for OperatorInfo
impl Clone for OperatorInfo
source§fn clone(&self) -> OperatorInfo
fn clone(&self) -> OperatorInfo
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 OperatorInfo
impl Debug for OperatorInfo
source§impl Default for OperatorInfo
impl Default for OperatorInfo
source§fn default() -> OperatorInfo
fn default() -> OperatorInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OperatorInfo
impl Send for OperatorInfo
impl Sync for OperatorInfo
impl Unpin for OperatorInfo
impl UnwindSafe for OperatorInfo
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