from_str_with_options

Function from_str_with_options 

Source
pub fn from_str_with_options<T: DeserializeOwned>(
    s: &str,
    options: Option<&DecodeOptions>,
) -> Result<T, Error>
Expand description

Deserialize a TOON-formatted string to a value with options

§Arguments

  • s - The TOON-formatted string to deserialize
  • options - Decoding options

§Returns

A Result containing the deserialized value or an error