pub fn try_into_string(self) -> Result<String> {
        Ok(match self {
            HttpData::Text(s) => s,
            HttpData::Binary(b) => String::from_utf8(b)?,
        })
    }
/// Attempt to convert this data to a raw String. It is an error if the data
/// is not valid UTF-8.
Attempt to convert this data to a raw String. It is an error if the data
is not valid UTF-8.
Attempt to convert this data to a raw String . It is an error if the data is not valid UTF - 8 .
pub fn try_into_string(self) -> Result<String> {
        Ok(match self {
            HttpData::Text(s) => s,
            HttpData::Binary(b) => String::from_utf8(b)?,
        })
    }
pub fn try_into_string ( self ) -> Result < String > { Ok ( match self { HttpData :: Text ( s ) => s , HttpData :: Binary ( b ) => String :: from_utf8 ( b ) ? , } ) }
Attempt to convert this data to a raw String.
Attempt to convert this data to a raw String .
self
self