/// Makes sure that `val` deserializes to `obj`
/// Used when testing _incoming_ messages from the HTTP Handler's point of
/// view
Makes sure that `val` deserializes to `obj`
Used when testing _incoming_ messages from the HTTP Handler's point of
view
Makes sure that ` val ` deserializes to ` obj ` Used when testing _incoming_ messages from the HTTP Handler ' s point of view
fn assert_cbor_de_equal<T>(obj: &T, val: Value)
    where
        for<'de> T: Deserialize<'de> + std::fmt::Debug + std::cmp::Eq,
    {
        let obj2 = serde_cbor::value::from_value(val).expect("Could not read CBOR value");
        assert_eq!(*obj, obj2);
    }
fn assert_cbor_de_equal < T > ( obj : & T , val : Value ) where for < ' de > T : Deserialize < ' de > + std :: fmt :: Debug + std :: cmp :: Eq , { let obj2 = serde_cbor :: value :: from_value ( val ) . expect ( " " ) ; assert_eq ! ( obj obj2 ) ; }
Makes sure that `val` deserializes to `obj`
Used when testing _incoming_ messages from the HTTP Handler's point of
view
Makes sure that ` val ` deserializes to ` obj ` Used when testing _incoming_ messages from the HTTP Handler ' s point of view
obj
&T
val
Value