Trait opendal::Builder

source ·
pub trait Builder: Default {
    type Accessor: Accessor;

    const SCHEME: Scheme;

    fn from_map(map: HashMap<String, String>) -> Self;
    fn build(&mut self) -> Result<Self::Accessor>;

    fn from_iter(iter: impl Iterator<Item = (String, String)>) -> Self
    where
        Self: Sized
, { ... } fn from_env() -> Self
    where
        Self: Sized
, { ... } }
Expand description

Builder is used to build a storage accessor used by Operator.

It’s recommended to use Operator::new to avoid use Builder trait directly.

Required Associated Types§

The accessor that built by this builder.

Required Associated Constants§

Associated scheme for this builder.

Required Methods§

Construct a builder from given map.

Consume the accessor builder to build a service.

Provided Methods§

Construct a builder from given iterator.

Construct a builder from envs.

Implementations on Foreign Types§

Dummy implementation of builder

Implementors§