fn serialize_unit_variant(
        self,
        _name: &'static str,
        _variant_index: u32,
        variant: &'static str,
    ) -> Result {
        Ok(static_str_to_js(variant))
    }
/// For compatibility with serde-json, serialises unit variants as "Variant" strings.
For compatibility with serde-json, serialises unit variants as "Variant" strings.
For compatibility with serde - json serialises unit variants as " Variant " strings .
fn serialize_unit_variant(
        self,
        _name: &'static str,
        _variant_index: u32,
        variant: &'static str,
    ) -> Result {
        Ok(static_str_to_js(variant))
    }
fn serialize_unit_variant ( self , _name : & ' static str , _variant_index : u32 , variant : & ' static str , ) -> Result { Ok ( static_str_to_js ( variant ) ) }
For compatibility with serde-json, serialises unit variants as "Variant" strings.
For compatibility with serde - json serialises unit variants as " Variant " strings .
self
_name
&'static str
_variant_index
u32
variant
&'static str