Struct relay_protocol::condition::AllCondition
source · pub struct AllCondition {
pub name: String,
pub inner: Box<RuleCondition>,
}
Expand description
Applies the ALL operation to an array field.
This condition matches if all 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 AllCondition
impl AllCondition
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 all the elements in the array against the inner
condition.
Trait Implementations§
source§impl Clone for AllCondition
impl Clone for AllCondition
source§fn clone(&self) -> AllCondition
fn clone(&self) -> AllCondition
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 AllCondition
impl Debug for AllCondition
source§impl<'de> Deserialize<'de> for AllCondition
impl<'de> Deserialize<'de> for AllCondition
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 AllCondition
impl PartialEq for AllCondition
source§impl Serialize for AllCondition
impl Serialize for AllCondition
impl StructuralPartialEq for AllCondition
Auto Trait Implementations§
impl Freeze for AllCondition
impl RefUnwindSafe for AllCondition
impl Send for AllCondition
impl Sync for AllCondition
impl Unpin for AllCondition
impl UnwindSafe for AllCondition
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
)