pub struct ClientBuilder { /* private fields */ }Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn new(endpoint: Endpoint) -> Self
Sourcepub fn authentication(self, value: Authentication) -> Self
pub fn authentication(self, value: Authentication) -> Self
A caller-supplied provider owns its token-exchange transport and policy.
Sourcepub fn oauth_credentials(
self,
context: AuthContext,
secret: Secret,
tsg_header: bool,
) -> Self
pub fn oauth_credentials( self, context: AuthContext, secret: Secret, tsg_header: bool, ) -> Self
Manage service credentials using this client’s transport, destination policy, and session for both token exchange and API requests. The default policy admits only the API and issuer origins; a supplied policy must admit both explicitly.
Sourcepub fn oauth_provider_options(self, options: OAuthProviderOptions) -> Self
pub fn oauth_provider_options(self, options: OAuthProviderOptions) -> Self
Configure this client’s immutable managed OAuth refresh policy and events.
pub fn transport(self, value: Arc<dyn Transport>) -> Self
pub fn destination_policy(self, value: Arc<dyn DestinationPolicy>) -> Self
pub fn limits(self, value: Limits) -> Self
Sourcepub fn validation_limits(self, value: ValidationLimits) -> Self
pub fn validation_limits(self, value: ValidationLimits) -> Self
Set native JSON resource bounds. Request/response byte limits still apply.
pub fn session(self, value: Session) -> Self
pub fn build(self) -> Result<Client>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ClientBuilder
impl !UnwindSafe for ClientBuilder
impl Freeze for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin 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