Struct aws_smithy_runtime::client::http::test_util::ReplayEvent
source · pub struct ReplayEvent { /* private fields */ }Available on crate features
client and test-util only.Expand description
Test data for the StaticReplayClient.
Each ReplayEvent represents one HTTP request and response
through the connector.
Implementations§
source§impl ReplayEvent
impl ReplayEvent
sourcepub fn new(
request: impl TryInto<HttpRequest>,
response: impl TryInto<HttpResponse>,
) -> Self
pub fn new( request: impl TryInto<HttpRequest>, response: impl TryInto<HttpResponse>, ) -> Self
Creates a new ReplayEvent.
sourcepub fn request(&self) -> &HttpRequest
pub fn request(&self) -> &HttpRequest
Returns the test request.
sourcepub fn response(&self) -> &HttpResponse
pub fn response(&self) -> &HttpResponse
Returns the test response.
Trait Implementations§
source§impl Debug for ReplayEvent
impl Debug for ReplayEvent
source§impl From<(Request, Response)> for ReplayEvent
impl From<(Request, Response)> for ReplayEvent
source§fn from((request, response): (HttpRequest, HttpResponse)) -> Self
fn from((request, response): (HttpRequest, HttpResponse)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ReplayEvent
impl !RefUnwindSafe for ReplayEvent
impl Send for ReplayEvent
impl Sync for ReplayEvent
impl Unpin for ReplayEvent
impl !UnwindSafe for ReplayEvent
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.