Expand description
Represents a BSON regular expression value.
Fields§
§pattern: String
The regex pattern to match.
options: String
The options for the regex.
Options are identified by characters, which must be stored in alphabetical order. Valid options are ‘i’ for case insensitive matching, ‘m’ for multiline matching, ‘x’ for verbose mode, ‘l’ to make \w, \W, etc. locale dependent, ‘s’ for dotall mode (‘.’ matches everything), and ‘u’ to make \w, \W, etc. match unicode.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Regex
impl<'de> Deserialize<'de> for Regex
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more