pub struct AuthenticatedRequest<'request, 'policy> { /* private fields */ }Expand description
Request plus mandatory provider or operation-owned authentication policy.
Implementations§
Source§impl<'request, 'policy> AuthenticatedRequest<'request, 'policy>
impl<'request, 'policy> AuthenticatedRequest<'request, 'policy>
Sourcepub const fn new(
request: TransportRequest<'request>,
policy: AuthenticationScopePolicy<'policy>,
) -> Self
pub const fn new( request: TransportRequest<'request>, policy: AuthenticationScopePolicy<'policy>, ) -> Self
Binds a transport request to its complete authentication policy.
Sourcepub const fn transport_request(self) -> TransportRequest<'request>
pub const fn transport_request(self) -> TransportRequest<'request>
Returns the credential-free transport request.
Sourcepub const fn policy(self) -> AuthenticationScopePolicy<'policy>
pub const fn policy(self) -> AuthenticationScopePolicy<'policy>
Returns the complete authentication policy.
Trait Implementations§
Source§impl<'request, 'policy> Clone for AuthenticatedRequest<'request, 'policy>
impl<'request, 'policy> Clone for AuthenticatedRequest<'request, 'policy>
Source§fn clone(&self) -> AuthenticatedRequest<'request, 'policy>
fn clone(&self) -> AuthenticatedRequest<'request, 'policy>
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 moreimpl<'request, 'policy> Copy for AuthenticatedRequest<'request, 'policy>
Auto Trait Implementations§
impl<'request, 'policy> Freeze for AuthenticatedRequest<'request, 'policy>
impl<'request, 'policy> RefUnwindSafe for AuthenticatedRequest<'request, 'policy>
impl<'request, 'policy> Send for AuthenticatedRequest<'request, 'policy>
impl<'request, 'policy> Sync for AuthenticatedRequest<'request, 'policy>
impl<'request, 'policy> Unpin for AuthenticatedRequest<'request, 'policy>
impl<'request, 'policy> UnsafeUnpin for AuthenticatedRequest<'request, 'policy>
impl<'request, 'policy> UnwindSafe for AuthenticatedRequest<'request, 'policy>
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