#[non_exhaustive]pub struct ClientConfig { /* private fields */ }Expand description
EN: SDK client configuration. 中文:SDK 客户端配置。
Implementations§
Source§impl ClientConfig
impl ClientConfig
Sourcepub fn builder() -> ClientConfigBuilder
pub fn builder() -> ClientConfigBuilder
EN: Starts building a client configuration. 中文:开始构建客户端配置。
Sourcepub fn organization(&self) -> Option<&str>
pub fn organization(&self) -> Option<&str>
EN: Returns the configured organization header value. 中文:返回已配置的组织请求头值。
Sourcepub fn project(&self) -> Option<&str>
pub fn project(&self) -> Option<&str>
EN: Returns the configured project header value. 中文:返回已配置的项目请求头值。
Sourcepub fn retry_policy(&self) -> &RetryPolicy
pub fn retry_policy(&self) -> &RetryPolicy
EN: Returns the configured retry policy. 中文:返回已配置的重试策略。
Sourcepub fn retry_sleeper(&self) -> Arc<dyn RetrySleeper>
pub fn retry_sleeper(&self) -> Arc<dyn RetrySleeper>
EN: Returns the configured retry sleeper. 中文:返回已配置的重试休眠器。
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ClientConfig
impl !UnwindSafe for ClientConfig
impl Freeze for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
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