fn deserialize_compat<'de, S>(serializer: S) -> Result<Option<TagSupport<T>>, S::Error>
    where
        S: serde::Deserializer<'de>,
        T: serde::Deserialize<'de>,
    {
        Ok(
            match Option::<Value>::deserialize(serializer).map_err(serde::de::Error::custom)? {
                Some(Value::Bool(false)) => None,
                Some(Value::Bool(true)) => Some(TagSupport { value_set: vec![] }),
                Some(other) => {
                    Some(TagSupport::<T>::deserialize(other).map_err(serde::de::Error::custom)?)
                }
                None => None,
            },
        )
    }
/// Support for deserializing a boolean tag Support, in case it's present.
///
/// This is currently the case for vscode 1.41.1
Support for deserializing a boolean tag Support, in case it's present.
This is currently the case for vscode 1.41.1
Support for deserializing a boolean tag Support in case it ' s present . This is currently the case for vscode 1 . 41 . 1
fn deserialize_compat<'de, S>(serializer: S) -> Result<Option<TagSupport<T>>, S::Error>
    where
        S: serde::Deserializer<'de>,
        T: serde::Deserialize<'de>,
    {
        Ok(
            match Option::<Value>::deserialize(serializer).map_err(serde::de::Error::custom)? {
                Some(Value::Bool(false)) => None,
                Some(Value::Bool(true)) => Some(TagSupport { value_set: vec![] }),
                Some(other) => {
                    Some(TagSupport::<T>::deserialize(other).map_err(serde::de::Error::custom)?)
                }
                None => None,
            },
        )
    }
fn deserialize_compat < ' de , S > ( serializer : S ) -> Result < Option < TagSupport < T > > , S :: Error > where S : serde :: Deserializer < ' de > , T : serde :: Deserialize < ' de > , { Ok ( match Option :: < Value > :: deserialize ( serializer ) . map_err ( serde :: de :: Error :: custom ) ? { Some ( Value :: Bool ( false ) ) => None , Some ( Value :: Bool ( true ) ) => Some ( TagSupport { value_set : vec ! [ ] } ) , Some ( other ) => { Some ( TagSupport :: < T > :: deserialize ( other ) . map_err ( serde :: de :: Error :: custom ) ? ) } None => None , } , ) }
Support for deserializing a boolean tag Support, in case it's present.
Support for deserializing a boolean tag Support in case it ' s present .
serializer
S
serializer
S