Struct sdkms::SdkmsClientBuilder
source · [−]pub struct SdkmsClientBuilder { /* private fields */ }
Expand description
A builder for SdkmsClient
Implementations
sourceimpl SdkmsClientBuilder
impl SdkmsClientBuilder
sourcepub fn with_http_client(self, client: HttpClient) -> Self
pub fn with_http_client(self, client: HttpClient) -> Self
This can be used to customize the underlying HTTP client if desired.
sourcepub fn with_api_endpoint(self, api_endpoint: &str) -> Self
pub fn with_api_endpoint(self, api_endpoint: &str) -> Self
This can be used to set the API endpoint. Otherwise the default endpoint is used.
sourcepub fn with_api_key(self, api_key: &str) -> Self
pub fn with_api_key(self, api_key: &str) -> Self
This can be used to make API calls without establishing a session. The API key will be passed along as HTTP Basic auth header on all API calls.
sourcepub fn with_access_token(self, access_token: &str) -> Self
pub fn with_access_token(self, access_token: &str) -> Self
This can be used to restore an established session.
sourcepub fn build(self) -> Result<SdkmsClient>
pub fn build(self) -> Result<SdkmsClient>
Build SdkmsClient
Auto Trait Implementations
impl !RefUnwindSafe for SdkmsClientBuilder
impl Send for SdkmsClientBuilder
impl Sync for SdkmsClientBuilder
impl Unpin for SdkmsClientBuilder
impl !UnwindSafe for SdkmsClientBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more