Struct relay_protocol::condition::AnyCondition
source · pub struct AnyCondition {
pub name: String,
pub inner: Box<RuleCondition>,
}
Expand description
Applies the ANY operation to an array field.
This condition matches if at least one of the elements of the array match with the
inner
condition.
Fields§
§name: String
Path of the field that should match the value.
inner: Box<RuleCondition>
Inner rule to match on each element.
Implementations§
source§impl AnyCondition
impl AnyCondition
sourcepub fn new(field: impl Into<String>, inner: RuleCondition) -> Self
pub fn new(field: impl Into<String>, inner: RuleCondition) -> Self
Creates a condition that matches any element in the array against the inner
condition.
Trait Implementations§
source§impl Clone for AnyCondition
impl Clone for AnyCondition
source§fn clone(&self) -> AnyCondition
fn clone(&self) -> AnyCondition
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 Debug for AnyCondition
impl Debug for AnyCondition
source§impl<'de> Deserialize<'de> for AnyCondition
impl<'de> Deserialize<'de> for AnyCondition
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 PartialEq for AnyCondition
impl PartialEq for AnyCondition
source§impl Serialize for AnyCondition
impl Serialize for AnyCondition
impl StructuralPartialEq for AnyCondition
Auto Trait Implementations§
impl Freeze for AnyCondition
impl RefUnwindSafe for AnyCondition
impl Send for AnyCondition
impl Sync for AnyCondition
impl Unpin for AnyCondition
impl UnwindSafe for AnyCondition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)