pub fn from_str<'de, T: Deserialize<'de>>(input: &'de str) -> Result<T>Expand description
Deserializes a string slice into a data structure of type T.
§Arguments
input- A string slice that holds the data to be deserialized.
§Returns
Result<T>- Returns a result containing the deserialized data structure of typeTon success, or an error if the deserialization fails.
§Type Parameters
T- The type of the data structure to deserialize into. It must implement theDeserializetrait.