// Structs look just like maps in JSON. In particular, JSON requires that we
// serialize the field names of the struct. Other formats may be able to
// omit the field names when serializing structs because the corresponding
// Deserialize implementation is required to know what the keys are without
// looking at the serialized data.
Structs look just like maps in JSON. In particular, JSON requires that we
serialize the field names of the struct. Other formats may be able to
omit the field names when serializing structs because the corresponding
Deserialize implementation is required to know what the keys are without
looking at the serialized data.
Structs look just like maps in JSON . In particular JSON requires that we serialize the field names of the struct . Other formats may be able to omit the field names when serializing structs because the corresponding Deserialize implementation is required to know what the keys are without looking at the serialized data .
fn serialize_struct(self, _name: &'static str, _len: usize) -> Result<Self::SerializeStruct> {
        Ok(TlvSerializer {
            items: vec![],
            tag: self.tag,
            output: &mut self.output,
        })
    }
fn serialize_struct ( self , _name : & ' static str , _len : usize ) -> Result < Self :: SerializeStruct > { Ok ( TlvSerializer { items : vec ! [ ] , tag : self . tag , output : & mut self . output , } ) }
Structs look just like maps in JSON.
Structs look just like maps in JSON .
self
_name
&'static str
_len
usize