pub struct ClientBuilder { /* private fields */ }Expand description
Builder for Client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn new<S1, S2, S3>(
access_key_id: S1,
access_key_secret: S2,
endpoint: S3,
) -> Self
pub fn new<S1, S2, S3>( access_key_id: S1, access_key_secret: S2, endpoint: S3, ) -> Self
endpoint could be: oss-cn-hangzhou.aliyuncs.com without scheme part.
or you can include scheme part in the endpoint: https://oss-cn-hangzhou.aliyuncs.com.
if no scheme specified, use https by default.
Sourcepub fn region(self, region: impl Into<String>) -> Self
pub fn region(self, region: impl Into<String>) -> Self
Set region id explicitly. e.g. cn-beijing, cn-hangzhou.
CAUTION no oss- prefix for region.
If no region is set, I will be guessed from endpoint.
Trait Implementations§
Source§impl Debug for ClientBuilder
impl Debug for ClientBuilder
Source§impl Default for ClientBuilder
impl Default for ClientBuilder
Source§fn default() -> ClientBuilder
fn default() -> ClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more