fn serialize_unit_struct(self, _name: &'static str) -> Result<()> {
        // self.serialize_unit()
        Err(Error::Message(String::from(
            "unit struct is not implemented/serializable",
        )))
    }
// Unit struct means a named value containing no data. Again, since there is
// no data, map this to JSON as `null`. There is no need to serialize the
// name in most formats.
Unit struct means a named value containing no data. Again, since there is
no data, map this to JSON as `null`. There is no need to serialize the
name in most formats.
Unit struct means a named value containing no data . Again since there is no data map this to JSON as ` null ` . There is no need to serialize the name in most formats .
fn serialize_unit_struct(self, _name: &'static str) -> Result<()> {
        // self.serialize_unit()
        Err(Error::Message(String::from(
            "unit struct is not implemented/serializable",
        )))
    }
fn serialize_unit_struct ( self , _name : & ' static str ) -> Result < ( ) > { // self.serialize_unit() Err ( Error :: Message ( String :: from ( " " , ) ) ) }
Unit struct means a named value containing no data.
Unit struct means a named value containing no data .
self
_name
&'static str
self
_name
&'static str