pub fn description(&self) -> String {
        match *self {
            Mismatch::MethodMismatch { expected: ref e, actual: ref a } => format!("expected {} but was {}", e, a),
            Mismatch::PathMismatch { ref mismatch, .. } => mismatch.clone(),
            Mismatch::StatusMismatch { expected: ref e, actual: ref a } => format!("expected {} but was {}", e, a),
            Mismatch::QueryMismatch { ref mismatch, .. } => mismatch.clone(),
            Mismatch::HeaderMismatch { ref mismatch, .. } => mismatch.clone(),
            Mismatch::BodyTypeMismatch {  expected: ref e, actual: ref a } => format!("expected '{}' body but was '{}'", e, a),
            Mismatch::BodyMismatch { ref path, ref mismatch, .. } => format!("{} -> {}", path, mismatch)
        }
    }
/// Returns a formated string for this mismatch
Returns a formated string for this mismatch
Returns a formated string for this mismatch
pub fn description(&self) -> String {
        match *self {
            Mismatch::MethodMismatch { expected: ref e, actual: ref a } => format!("expected {} but was {}", e, a),
            Mismatch::PathMismatch { ref mismatch, .. } => mismatch.clone(),
            Mismatch::StatusMismatch { expected: ref e, actual: ref a } => format!("expected {} but was {}", e, a),
            Mismatch::QueryMismatch { ref mismatch, .. } => mismatch.clone(),
            Mismatch::HeaderMismatch { ref mismatch, .. } => mismatch.clone(),
            Mismatch::BodyTypeMismatch {  expected: ref e, actual: ref a } => format!("expected '{}' body but was '{}'", e, a),
            Mismatch::BodyMismatch { ref path, ref mismatch, .. } => format!("{} -> {}", path, mismatch)
        }
    }
pub fn description ( & self ) -> String { match * self { Mismatch :: MethodMismatch { expected : ref e , actual : ref a } => format ! ( " " e a ) , Mismatch :: PathMismatch { ref mismatch , .. } => mismatch . clone ( ) , Mismatch :: StatusMismatch { expected : ref e , actual : ref a } => format ! ( " " e a ) , Mismatch :: QueryMismatch { ref mismatch , .. } => mismatch . clone ( ) , Mismatch :: HeaderMismatch { ref mismatch , .. } => mismatch . clone ( ) , Mismatch :: BodyTypeMismatch { expected : ref e , actual : ref a } => format ! ( " " e a ) , Mismatch :: BodyMismatch { ref path , ref mismatch , .. } => format ! ( " " path mismatch ) } }
Returns a formated string for this mismatch
Returns a formated string for this mismatch
&self
&self