pub struct StringArrayComparator {
pub length: Option<Box<NumberComparator>>,
pub every: Option<Box<StringItemComparator>>,
pub some: Option<Box<StringItemComparator>>,
}Expand description
Comparator for strings.
Fields§
§length: Option<Box<NumberComparator>>Length of the array. Matches any values that have the given length.
every: Option<Box<StringItemComparator>>Compound filters, all of which need to be matched.
some: Option<Box<StringItemComparator>>Compound filters, one of which needs to be matched.
Trait Implementations§
Source§impl Clone for StringArrayComparator
impl Clone for StringArrayComparator
Source§fn clone(&self) -> StringArrayComparator
fn clone(&self) -> StringArrayComparator
Returns a duplicate 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 Debug for StringArrayComparator
impl Debug for StringArrayComparator
Source§impl Default for StringArrayComparator
impl Default for StringArrayComparator
Source§fn default() -> StringArrayComparator
fn default() -> StringArrayComparator
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StringArrayComparator
impl<'de> Deserialize<'de> for StringArrayComparator
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
Auto Trait Implementations§
impl Freeze for StringArrayComparator
impl RefUnwindSafe for StringArrayComparator
impl Send for StringArrayComparator
impl Sync for StringArrayComparator
impl Unpin for StringArrayComparator
impl UnwindSafe for StringArrayComparator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more