Function unicase_serde::ascii::borrowed::deserialize [] [src]

pub fn deserialize<'de, S, D>(deserializer: D) -> Result<Ascii<S>, D::Error> where
    S: From<&'de str> + AsRef<str> + 'de,
    D: Deserializer<'de>, 

Borrowed Deserializer for Ascii.

Typically, you will use this for any types that borrow data. Example include &str. If you use this with any type that owns data, you will get an error at runtime.