Struct relay_protocol::condition::OrCondition
source · pub struct OrCondition {
pub inner: Vec<RuleCondition>,
}
Expand description
Combines multiple conditions using logical OR.
This condition matches if any of the inner conditions match. The default value for this
condition is false
, that is, this rule does not match if there are no inner conditions.
See RuleCondition::or
.
Fields§
§inner: Vec<RuleCondition>
Inner rules to combine.
Trait Implementations§
source§impl Clone for OrCondition
impl Clone for OrCondition
source§fn clone(&self) -> OrCondition
fn clone(&self) -> OrCondition
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 OrCondition
impl Debug for OrCondition
source§impl<'de> Deserialize<'de> for OrCondition
impl<'de> Deserialize<'de> for OrCondition
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 OrCondition
impl PartialEq for OrCondition
source§impl Serialize for OrCondition
impl Serialize for OrCondition
impl StructuralPartialEq for OrCondition
Auto Trait Implementations§
impl Freeze for OrCondition
impl RefUnwindSafe for OrCondition
impl Send for OrCondition
impl Sync for OrCondition
impl Unpin for OrCondition
impl UnwindSafe for OrCondition
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
)