fn to_regex<'de, D>(deserializer: D) -> Result<Option<Regex>, D::Error>
where
    D: Deserializer<'de>,
{
    let v: Value = Deserialize::deserialize(deserializer)?;
    //println!("v= {:?}", v);
    let re = Regex::new(v.as_str().unwrap()).map_err(de::Error::custom)?;
    Ok(Some(re))
}
/// A custom deserializer for the `exclude` field.
A custom deserializer for the `exclude` field.
A custom deserializer for the ` exclude ` field .
fn to_regex<'de, D>(deserializer: D) -> Result<Option<Regex>, D::Error>
where
    D: Deserializer<'de>,
{
    let v: Value = Deserialize::deserialize(deserializer)?;
    //println!("v= {:?}", v);
    let re = Regex::new(v.as_str().unwrap()).map_err(de::Error::custom)?;
    Ok(Some(re))
}
fn to_regex < ' de , D > ( deserializer : D ) -> Result < Option < Regex > , D :: Error > where D : Deserializer < ' de > , { let v : Value = Deserialize :: deserialize ( deserializer ) ? ; //println!("v= {:?}", v); let re = Regex :: new ( v . as_str ( ) . unwrap ( ) ) . map_err ( de :: Error :: custom ) ? ; Ok ( Some ( re ) ) }
A custom deserializer for the `exclude` field.
A custom deserializer for the ` exclude ` field .
deserializer
D
deserializer
D