pub struct ClientOptions {
pub per_call_policies: Vec<Arc<dyn Policy>>,
pub per_try_policies: Vec<Arc<dyn Policy>>,
pub retry: RetryOptions,
pub transport: Option<Transport>,
pub user_agent: UserAgentOptions,
pub instrumentation: InstrumentationOptions,
pub logging: LoggingOptions,
pub cloud: Option<Arc<CloudConfiguration>>,
}Available on crate feature
export-azure only.Expand description
Client options allow customization of general client policies, retry options, and more.
Fieldsยง
ยงper_call_policies: Vec<Arc<dyn Policy>>Policies called per call.
per_try_policies: Vec<Arc<dyn Policy>>Policies called per try.
retry: RetryOptionsRetry options.
transport: Option<Transport>Transport options.
user_agent: UserAgentOptionsUser-Agent telemetry options.
instrumentation: InstrumentationOptionsOptions for request instrumentation, such as distributed tracing.
If not specified, defaults to no instrumentation.
logging: LoggingOptionsLogging options
Specifies which headers and query parameters should be logged. All headers and query parameters not in the allow list will be redacted.
cloud: Option<Arc<CloudConfiguration>>Cloud configuration for the client. If None, the client will default to Azure Public Cloud.
Trait Implementationsยง
Sourceยงimpl Clone for ClientOptions
impl Clone for ClientOptions
Sourceยงfn clone(&self) -> ClientOptions
fn clone(&self) -> ClientOptions
Returns a duplicate of the value. Read more
1.0.0 ยท 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 ClientOptions
impl Debug for ClientOptions
Sourceยงimpl Default for ClientOptions
impl Default for ClientOptions
Sourceยงfn default() -> ClientOptions
fn default() -> ClientOptions
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for ClientOptions
impl !RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnsafeUnpin for ClientOptions
impl !UnwindSafe for ClientOptions
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