fn deserialize_ignored_any<V>(&mut self, visitor: V)
                                  -> Result<V::Value, Self::Error>
        where V: de::Visitor
    {
        use serde::de::value::ValueDeserializer;
        let mut d = <() as ValueDeserializer<Self::Error>>::into_deserializer(());
        d.deserialize(visitor)
    }
// When #[derive(Deserialize)] encounters an unknown struct field it will
// call this method (somehow), and we want to preserve all unknown struct
// fields to return them upwards (to warn about unused keys), so we override
// that here to not tamper with our own internal state.
When #[derive(Deserialize)] encounters an unknown struct field it will
call this method (somehow), and we want to preserve all unknown struct
fields to return them upwards (to warn about unused keys), so we override
that here to not tamper with our own internal state.
When # [ derive ( Deserialize ) ] encounters an unknown struct field it will call this method ( somehow ) and we want to preserve all unknown struct fields to return them upwards ( to warn about unused keys ) so we override that here to not tamper with our own internal state .
fn deserialize_ignored_any<V>(&mut self, visitor: V)
                                  -> Result<V::Value, Self::Error>
        where V: de::Visitor
    {
        use serde::de::value::ValueDeserializer;
        let mut d = <() as ValueDeserializer<Self::Error>>::into_deserializer(());
        d.deserialize(visitor)
    }
fn deserialize_ignored_any < V > ( & mut self , visitor : V ) -> Result < V :: Value , Self :: Error > where V : de :: Visitor { use serde :: de :: value :: ValueDeserializer ; let mut d = < ( ) as ValueDeserializer < Self :: Error > > :: into_deserializer ( ( ) ) ; d . deserialize ( visitor ) }
When #[derive(Deserialize)] encounters an unknown struct field it will
call this method (somehow), and we want to preserve all unknown struct
fields to return them upwards (to warn about unused keys), so we override
that here to not tamper with our own internal state.
When # [ derive ( Deserialize ) ] encounters an unknown struct field it will call this method ( somehow ) and we want to preserve all unknown struct fields to return them upwards ( to warn about unused keys ) so we override that here to not tamper with our own internal state .
&mut self
visitor
V
&mut self
visitor
V