.unwrap_err(); "1111111111111111111111111111111111111111111111111111111111111111:1:foo" .parse::() .unwrap_err(); } #[test] fn deserialize_ok() { assert_eq!( serde_json::from_str::( "\"1111111111111111111111111111111111111111111111111111111111111111:1:1\"" ) .unwrap(), SatPoint { outpoint: "1111111111111111111111111111111111111111111111111111111111111111:1" .parse() .unwrap(), offset: 1, } ); } }