Struct huaweicloud_sdk_rust_obs::client::ClientBuilder
source · pub struct ClientBuilder { /* private fields */ }
Implementations§
source§impl ClientBuilder
impl ClientBuilder
pub fn signature_type(self, st: SignatureType) -> ClientBuilder
pub fn security_providers(self, sps: Vec<SecurityHolder>) -> ClientBuilder
sourcepub fn endpoint<S: ToString>(self, value: S) -> ClientBuilder
pub fn endpoint<S: ToString>(self, value: S) -> ClientBuilder
节点,支持以下三种格式:
- http://your-endpoint
- https://your-endpoint
- your-endpoint
pub fn security_provider<S: ToString>(self, ak: S, sk: S) -> ClientBuilder
pub fn timeout(self, duration: Duration) -> ClientBuilder
pub fn region<S: ToString>(self, value: S) -> ClientBuilder
pub fn is_secure(self, value: bool) -> ClientBuilder
pub fn build(self) -> Result<Client, ObsError>
Trait Implementations§
source§impl Debug for ClientBuilder
impl Debug for ClientBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin 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