pub struct TestResult {Show 16 fields
pub name: String,
pub status: u16,
pub passed: bool,
pub elapsed_ms: u64,
pub failures: Vec<Failure>,
pub response_preview: String,
pub request_method: String,
pub request_url: String,
pub request_headers: HashMap<String, String>,
pub request_body: Option<String>,
pub response_headers: HashMap<String, String>,
pub response_http_version: String,
pub response_charset: Option<String>,
pub response_size_bytes: usize,
pub skipped: bool,
pub error_type: Option<String>,
}Expand description
1リクエストの検証結果。
Fields§
§name: String§status: u16§passed: bool§elapsed_ms: u64§failures: Vec<Failure>§response_preview: String§request_method: String§request_url: String§request_headers: HashMap<String, String>§request_body: Option<String>§response_headers: HashMap<String, String>§response_http_version: StringHTTPバージョン(“HTTP/1.1”, “HTTP/2” 等)。
response_charset: Option<String>レスポンスの文字コード(content-type から検出)。
response_size_bytes: usizeレスポンスボディのバイト数。
skipped: bool§error_type: Option<String>エラー種別(“timeout”, “connection”, “dns”, “tls”, None=成功 or アサート失敗)。
Trait Implementations§
Source§impl Clone for TestResult
impl Clone for TestResult
Source§fn clone(&self) -> TestResult
fn clone(&self) -> TestResult
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 moreSource§impl Debug for TestResult
impl Debug for TestResult
Source§impl<'de> Deserialize<'de> for TestResult
impl<'de> Deserialize<'de> for TestResult
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TestResult
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnsafeUnpin for TestResult
impl UnwindSafe for TestResult
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