pub struct Builder { /* private fields */ }
Expand description
Builder for azblob services
Implementations§
source§impl Builder
impl Builder
sourcepub fn root(&mut self, root: &str) -> &mut Self
pub fn root(&mut self, root: &str) -> &mut Self
Set root of this backend.
All operations will happen under this root.
sourcepub fn filesystem(&mut self, filesystem: &str) -> &mut Self
pub fn filesystem(&mut self, filesystem: &str) -> &mut Self
Set filesystem name of this backend.
sourcepub fn endpoint(&mut self, endpoint: &str) -> &mut Self
pub fn endpoint(&mut self, endpoint: &str) -> &mut Self
Set endpoint of this backend.
Endpoint must be full uri, e.g.
- Azblob:
https://accountname.blob.core.windows.net
- Azurite:
http://127.0.0.1:10000/devstoreaccount1
sourcepub fn account_name(&mut self, account_name: &str) -> &mut Self
pub fn account_name(&mut self, account_name: &str) -> &mut Self
Set account_name of this backend.
- If account_name is set, we will take user’s input first.
- If not, we will try to load it from environment.
sourcepub fn account_key(&mut self, account_key: &str) -> &mut Self
pub fn account_key(&mut self, account_key: &str) -> &mut Self
Set account_key of this backend.
- If account_key is set, we will take user’s input first.
- If not, we will try to load it from environment.