[−][src]Constant rmpv::MSGPACK_EXT_STRUCT_NAME
pub const MSGPACK_EXT_STRUCT_NAME: &'static str
Name of Serde newtype struct to Represent Msgpack's Ext Msgpack Ext: Ext(tag, binary) Serde data model: _ExtStruct((tag, binary)) Example Serde impl for custom type:
ⓘThis example is not tested
#[derive(Debug, PartialEq, Serialize, Deserialize)] #[serde(rename = "_ExtStruct")] struct ExtStruct((i8, serde_bytes::ByteBuf)); test_round(ExtStruct((2, serde_bytes::ByteBuf::from(vec![5]))), Value::Ext(2, vec![5]));