#[non_exhaustive]pub struct ClientConfig {
pub endpoints: EndpointConfig,
pub credentials: Credentials,
pub restricted_area: RestrictedAreaConfig,
pub user_agent: String,
pub request_timeout: Duration,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoints: EndpointConfig§credentials: Credentials§restricted_area: RestrictedAreaConfig§user_agent: String§request_timeout: DurationImplementations§
Source§impl ClientConfig
impl ClientConfig
pub fn new(endpoints: EndpointConfig, credentials: Credentials) -> Self
pub fn with_endpoints(self, endpoints: EndpointConfig) -> Self
pub fn with_credentials(self, credentials: Credentials) -> Self
pub fn with_restricted_area(self, restricted_area: RestrictedAreaConfig) -> Self
pub fn with_user_agent(self, user_agent: impl Into<String>) -> Self
pub fn with_request_timeout(self, request_timeout: Duration) -> Self
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 moreSource§impl Debug for ClientConfig
impl Debug for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe 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