pub struct ResponseDiff {
pub status_changed: bool,
pub old_status: u16,
pub new_status: u16,
pub new_headers: Vec<(String, String)>,
pub missing_headers: Vec<String>,
pub changed_headers: Vec<(String, String, String)>,
pub body_size_delta: i64,
pub timing_delta_ms: i64,
pub body_similarity: f64,
}Fields§
§status_changed: bool§old_status: u16§new_status: u16§new_headers: Vec<(String, String)>§missing_headers: Vec<String>§changed_headers: Vec<(String, String, String)>§body_size_delta: i64§timing_delta_ms: i64§body_similarity: f64Implementations§
Source§impl ResponseDiff
impl ResponseDiff
pub fn has_differences(&self) -> bool
Trait Implementations§
Source§impl Clone for ResponseDiff
impl Clone for ResponseDiff
Source§fn clone(&self) -> ResponseDiff
fn clone(&self) -> ResponseDiff
Returns a duplicate of the value. Read more
1.0.0 · 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 ResponseDiff
impl Debug for ResponseDiff
Source§impl PartialEq for ResponseDiff
impl PartialEq for ResponseDiff
impl StructuralPartialEq for ResponseDiff
Auto Trait Implementations§
impl Freeze for ResponseDiff
impl RefUnwindSafe for ResponseDiff
impl Send for ResponseDiff
impl Sync for ResponseDiff
impl Unpin for ResponseDiff
impl UnsafeUnpin for ResponseDiff
impl UnwindSafe for ResponseDiff
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