Struct opendal::raw::AccessorInfo
source · pub struct AccessorInfo { /* private fields */ }
Expand description
Metadata for accessor, users can use this metadata to get information of underlying backend.
Implementations§
source§impl AccessorInfo
impl AccessorInfo
sourcepub fn set_scheme(&mut self, scheme: Scheme) -> &mut Self
pub fn set_scheme(&mut self, scheme: Scheme) -> &mut Self
Set Scheme
for backend.
sourcepub fn set_root(&mut self, root: &str) -> &mut Self
pub fn set_root(&mut self, root: &str) -> &mut Self
Set root for backend.
Note: input root must be normalized.
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 capabilities(&self) -> FlagSet<AccessorCapability>
pub fn capabilities(&self) -> FlagSet<AccessorCapability>
Get backend’s capabilities.
sourcepub fn set_capabilities(
&mut self,
capabilities: impl Into<FlagSet<AccessorCapability>>
) -> &mut Self
pub fn set_capabilities( &mut self, capabilities: impl Into<FlagSet<AccessorCapability>> ) -> &mut Self
Set capabilities for backend.
sourcepub fn hints(&self) -> FlagSet<AccessorHint>
pub fn hints(&self) -> FlagSet<AccessorHint>
Get backend’s hints.
Trait Implementations§
source§impl Clone for AccessorInfo
impl Clone for AccessorInfo
source§fn clone(&self) -> AccessorInfo
fn clone(&self) -> AccessorInfo
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 AccessorInfo
impl Debug for AccessorInfo
source§impl Default for AccessorInfo
impl Default for AccessorInfo
source§fn default() -> AccessorInfo
fn default() -> AccessorInfo
Returns the “default value” for a type. Read more
source§impl From<Metadata> for AccessorInfo
impl From<Metadata> for AccessorInfo
source§fn from(m: Metadata) -> AccessorInfo
fn from(m: Metadata) -> AccessorInfo
Converts to this type from the input type.