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>
Creates a shared type from an unshared type.