pub struct ResponseHistoryEntry {
pub id: String,
pub executed_at: DateTime<Utc>,
pub request_method: HttpMethod,
pub request_path: String,
pub request_headers: HashMap<String, String>,
pub request_body: Option<String>,
pub response_status_code: u16,
pub response_headers: HashMap<String, String>,
pub response_body: Option<String>,
pub response_time_ms: u64,
pub response_size_bytes: u64,
pub error_message: Option<String>,
}Will be extracted to mockforge-workspace crate
Expand description
Response history entry for tracking actual request executions
Fields§
§id: StringWill be extracted to mockforge-workspace crate
Unique execution ID
executed_at: DateTime<Utc>Will be extracted to mockforge-workspace crate
Execution timestamp
request_method: HttpMethodWill be extracted to mockforge-workspace crate
Actual request method used
request_path: StringWill be extracted to mockforge-workspace crate
Actual request path used
request_headers: HashMap<String, String>Will be extracted to mockforge-workspace crate
Request headers sent
request_body: Option<String>Will be extracted to mockforge-workspace crate
Request body sent
response_status_code: u16Will be extracted to mockforge-workspace crate
Response status code received
response_headers: HashMap<String, String>Will be extracted to mockforge-workspace crate
Response headers received
response_body: Option<String>Will be extracted to mockforge-workspace crate
Response body received
response_time_ms: u64Will be extracted to mockforge-workspace crate
Response time in milliseconds
response_size_bytes: u64Will be extracted to mockforge-workspace crate
Response size in bytes
error_message: Option<String>Will be extracted to mockforge-workspace crate
Error message if execution failed
Trait Implementations§
Source§impl Clone for ResponseHistoryEntry
impl Clone for ResponseHistoryEntry
Source§fn clone(&self) -> ResponseHistoryEntry
fn clone(&self) -> ResponseHistoryEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResponseHistoryEntry
impl Debug for ResponseHistoryEntry
Source§impl<'de> Deserialize<'de> for ResponseHistoryEntry
impl<'de> Deserialize<'de> for ResponseHistoryEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ResponseHistoryEntry
impl RefUnwindSafe for ResponseHistoryEntry
impl Send for ResponseHistoryEntry
impl Sync for ResponseHistoryEntry
impl Unpin for ResponseHistoryEntry
impl UnsafeUnpin for ResponseHistoryEntry
impl UnwindSafe for ResponseHistoryEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more