Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: clearer aliases for event filter boolean operators
Lars Wirzenius committed 1 year ago
commit 9b35d1163761190ff1c3ebc53706ef36e54fae10
parent 623e590c2c00db90ee70b97377bb0852f59ed93b
1 file changed +3 -0
modified src/filter.rs
@@ -89,12 +89,15 @@ pub enum EventFilter {
    Deny,

    /// Allow the opposite of the contained filter.
+
    #[serde(alias = "NoneOf")]
    Not(Vec<EventFilter>),

    /// Allow if all contained filters allow.
+
    #[serde(alias = "AllOf")]
    And(Vec<EventFilter>),

    /// Allow if any contained filter allow.
+
    #[serde(alias = "AnyOf")]
    Or(Vec<EventFilter>),
}