fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>
    where
        E: Error,
    {
        Err(Error::invalid_type(Unexpected::Str(v), &self))
    }
/// The input contains a string. The lifetime of the string is ephemeral and
/// it may be destroyed after this method returns.
///
/// This method allows the `Deserializer` to avoid a copy by retaining
/// ownership of any buffered data. `Deserialize` implementations that do
/// not benefit from taking ownership of `String` data should indicate that
/// to the deserializer by using `Deserializer::deserialize_str` rather than
/// `Deserializer::deserialize_string`.
///
/// It is never correct to implement `visit_string` without implementing
/// `visit_str`. Implement neither, both, or just `visit_str`.
The input contains a string. The lifetime of the string is ephemeral and
it may be destroyed after this method returns.

This method allows the `Deserializer` to avoid a copy by retaining
ownership of any buffered data.

It is never correct to implement `visit_string` without implementing
`visit_str`. Implement neither, both, or just `visit_str`.
The input contains a string . The lifetime of the string is ephemeral and it may be destroyed after this method returns . This method allows the ` Deserializer ` to avoid a copy by retaining ownership of any buffered data . It is never correct to implement ` visit_string ` without implementing ` visit_str ` . Implement neither both or just ` visit_str ` .
fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>
    where
        E: Error,
    {
        Err(Error::invalid_type(Unexpected::Str(v), &self))
    }
fn visit_str < E > ( self , v : & str ) -> Result < Self :: Value , E > where E : Error , { Err ( Error :: invalid_type ( Unexpected :: Str ( v ) , & self ) ) }
The input contains a string.
The input contains a string .
self
v
&str
self
v
&str