pub struct PreparedRequestRecord<'endpoint> { /* private fields */ }Expand description
Non-secret record of one prepared request for policy assertions.
Implementations§
Source§impl<'endpoint> PreparedRequestRecord<'endpoint>
impl<'endpoint> PreparedRequestRecord<'endpoint>
Sourcepub const fn capture(prepared: PreparedRequest<'endpoint>) -> Self
pub const fn capture(prepared: PreparedRequest<'endpoint>) -> Self
Captures request shape and complete policy without copying target or body bytes.
Sourcepub const fn target_len(self) -> usize
pub const fn target_len(self) -> usize
Returns the redacted request-target length.
Sourcepub const fn has_request_content_type(self) -> bool
pub const fn has_request_content_type(self) -> bool
Reports whether a request content type is configured.
Sourcepub const fn service(self) -> ProviderService<'endpoint>
pub const fn service(self) -> ProviderService<'endpoint>
Returns the bound provider service and endpoint.
Sourcepub const fn metadata(self) -> OperationMetadata
pub const fn metadata(self) -> OperationMetadata
Returns complete operation safety and retry metadata.
Sourcepub const fn response_policy(self) -> ResponsePolicy
pub const fn response_policy(self) -> ResponsePolicy
Returns complete checked-response policy.
Trait Implementations§
Source§impl<'endpoint> Clone for PreparedRequestRecord<'endpoint>
impl<'endpoint> Clone for PreparedRequestRecord<'endpoint>
Source§fn clone(&self) -> PreparedRequestRecord<'endpoint>
fn clone(&self) -> PreparedRequestRecord<'endpoint>
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<'endpoint> Copy for PreparedRequestRecord<'endpoint>
Source§impl Debug for PreparedRequestRecord<'_>
impl Debug for PreparedRequestRecord<'_>
impl<'endpoint> Eq for PreparedRequestRecord<'endpoint>
Source§impl<'endpoint> PartialEq for PreparedRequestRecord<'endpoint>
impl<'endpoint> PartialEq for PreparedRequestRecord<'endpoint>
impl<'endpoint> StructuralPartialEq for PreparedRequestRecord<'endpoint>
Auto Trait Implementations§
impl<'endpoint> Freeze for PreparedRequestRecord<'endpoint>
impl<'endpoint> RefUnwindSafe for PreparedRequestRecord<'endpoint>
impl<'endpoint> Send for PreparedRequestRecord<'endpoint>
impl<'endpoint> Sync for PreparedRequestRecord<'endpoint>
impl<'endpoint> Unpin for PreparedRequestRecord<'endpoint>
impl<'endpoint> UnsafeUnpin for PreparedRequestRecord<'endpoint>
impl<'endpoint> UnwindSafe for PreparedRequestRecord<'endpoint>
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