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.