pub struct Builder { /* private fields */ }
Expand description
GCS storage backend builder
Implementations§
source§impl Builder
impl Builder
sourcepub fn scope(&mut self, scope: &str) -> &mut Self
pub fn scope(&mut self, scope: &str) -> &mut Self
set the endpoint GCS service scope
If not set, we will use https://www.googleapis.com/auth/devstorage.read_write
.
Valid scope exmaples
- read-only:
https://www.googleapis.com/auth/devstorage.read_only
- read-write:
https://www.googleapis.com/auth/devstorage.read_write
- full-control:
https://www.googleapis.com/auth/devstorage.full_control
Reference: Cloud Storage authentication
sourcepub fn credential(&mut self, credential: &str) -> &mut Self
pub fn credential(&mut self, credential: &str) -> &mut Self
set the base64 hashed credentials string used for OAuth2
sourcepub fn credential_path(&mut self, path: &str) -> &mut Self
pub fn credential_path(&mut self, path: &str) -> &mut Self
set the credentials path of GCS.