use derivative::Derivative;
use serde_tuple::Serialize_tuple;
#[derive(Derivative, Serialize_tuple)]
#[derivative(Debug)]
pub struct OwnStruct {
#[derivative(Debug = "ignore")]
value1: String,
value2: u64,
}
#[test]
fn test_interop_attrs() {
let own_struct = OwnStruct {
value1: "Cthulhu".to_string(),
value2: 42,
};
let debug_output = format!("{own_struct:?}");
assert_eq!(debug_output, "OwnStruct { value2: 42 }");
let json_output = serde_json::to_string(&own_struct).unwrap();
assert_eq!(json_output, r#"["Cthulhu",42]"#);
}