pub struct AuthenticatedRequest<'request, 'policy> { /* private fields */ }Expand description
Request plus mandatory provider or operation-owned authentication policy.
Construction is internal so application code cannot bypass prepared or permit-authorized execution through the public transport traits.
ⓘ
use cloud_sdk::authentication::{AuthenticatedRequest, AuthenticationScopePolicy};
use cloud_sdk::transport::{RawResponsePolicy, TransportRequest};
fn forge(
request: TransportRequest<'_>,
authentication: AuthenticationScopePolicy<'_>,
response: RawResponsePolicy<'_>,
) {
let _ = AuthenticatedRequest::new(request, authentication, &response);
}Implementations§
Source§impl<'request, 'policy> AuthenticatedRequest<'request, 'policy>
impl<'request, 'policy> AuthenticatedRequest<'request, '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.
Sourcepub const fn response_policy(self) -> RawResponsePolicy<'policy>
pub const fn response_policy(self) -> RawResponsePolicy<'policy>
Returns the complete status-class raw response 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