pub fn summary(&self) -> String {
        match *self {
            Mismatch::MethodMismatch { expected: ref e, .. } => format!("is a {} request", e),
            Mismatch::PathMismatch { expected: ref e, .. } => format!("to path '{}'", e),
            Mismatch::StatusMismatch { expected: ref e, .. } => format!("has status code {}", e),
            Mismatch::QueryMismatch { ref parameter, expected: ref e, .. } => format!("includes parameter '{}' with value '{}'", parameter, e),
            Mismatch::HeaderMismatch { ref key, expected: ref e, .. } => format!("includes header '{}' with value '{}'", key, e),
            Mismatch::BodyTypeMismatch { .. } => s!("has a matching body"),
            Mismatch::BodyMismatch { .. } => s!("has a matching body")
        }
    }
/// Returns a summary string for this mismatch
Returns a summary string for this mismatch
Returns a summary string for this mismatch
pub fn summary(&self) -> String {
        match *self {
            Mismatch::MethodMismatch { expected: ref e, .. } => format!("is a {} request", e),
            Mismatch::PathMismatch { expected: ref e, .. } => format!("to path '{}'", e),
            Mismatch::StatusMismatch { expected: ref e, .. } => format!("has status code {}", e),
            Mismatch::QueryMismatch { ref parameter, expected: ref e, .. } => format!("includes parameter '{}' with value '{}'", parameter, e),
            Mismatch::HeaderMismatch { ref key, expected: ref e, .. } => format!("includes header '{}' with value '{}'", key, e),
            Mismatch::BodyTypeMismatch { .. } => s!("has a matching body"),
            Mismatch::BodyMismatch { .. } => s!("has a matching body")
        }
    }
pub fn summary ( & self ) -> String { match * self { Mismatch :: MethodMismatch { expected : ref e , .. } => format ! ( " " e ) , Mismatch :: PathMismatch { expected : ref e , .. } => format ! ( " " e ) , Mismatch :: StatusMismatch { expected : ref e , .. } => format ! ( " " e ) , Mismatch :: QueryMismatch { ref parameter , expected : ref e , .. } => format ! ( " " parameter e ) , Mismatch :: HeaderMismatch { ref key , expected : ref e , .. } => format ! ( " " key e ) , Mismatch :: BodyTypeMismatch { .. } => s ! ( " " ) , Mismatch :: BodyMismatch { .. } => s ! ( " " ) } }
Returns a summary string for this mismatch
Returns a summary string for this mismatch
&self
&self