fn serialize_unit_variant(
        self,
        _name: &'static str,
        _variant_index: u32,
        variant: &'static str,
    ) -> Result<()> {
        self.serialize_str(variant)
    }
// Unit variants are enum variants without any value.
// In this case we'll serialize the name of the variant.
Unit variants are enum variants without any value.
In this case we'll serialize the name of the variant.
Unit variants are enum variants without any value . In this case we ' ll serialize the name of the variant .
fn serialize_unit_variant(
        self,
        _name: &'static str,
        _variant_index: u32,
        variant: &'static str,
    ) -> Result<()> {
        self.serialize_str(variant)
    }
fn serialize_unit_variant ( self , _name : & ' static str , _variant_index : u32 , variant : & ' static str , ) -> Result < ( ) > { self . serialize_str ( variant ) }
Unit variants are enum variants without any value.
Unit variants are enum variants without any value .
self
_name
&'static str
_variant_index
u32
variant
&'static str