Struct bson::RawRegexRef
source · Expand description
A BSON regex referencing raw bytes stored elsewhere.
Fields§
§pattern: &'a str
The regex pattern to match.
options: &'a str
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<'a> Clone for RawRegexRef<'a>
impl<'a> Clone for RawRegexRef<'a>
source§fn clone(&self) -> RawRegexRef<'a>
fn clone(&self) -> RawRegexRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for RawRegexRef<'a>
impl<'a> Debug for RawRegexRef<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for RawRegexRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RawRegexRef<'a>
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
source§impl<'a> From<RawRegexRef<'a>> for RawBsonRef<'a>
impl<'a> From<RawRegexRef<'a>> for RawBsonRef<'a>
source§fn from(re: RawRegexRef<'a>) -> Self
fn from(re: RawRegexRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq<RawRegexRef<'a>> for RawRegexRef<'a>
impl<'a> PartialEq<RawRegexRef<'a>> for RawRegexRef<'a>
source§fn eq(&self, other: &RawRegexRef<'a>) -> bool
fn eq(&self, other: &RawRegexRef<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.