pub enum SieveTest {
True,
False,
Header {
comparator: Option<String>,
match_type: String,
headers: Vec<String>,
keys: Vec<String>,
},
Address {
comparator: Option<String>,
match_type: String,
headers: Vec<String>,
keys: Vec<String>,
},
Envelope {
comparator: Option<String>,
match_type: String,
parts: Vec<String>,
keys: Vec<String>,
},
Exists(Vec<String>),
Size {
over: bool,
limit: i64,
},
AllOf(Vec<SieveTest>),
AnyOf(Vec<SieveTest>),
Not(Box<SieveTest>),
}Expand description
Sieve test condition
Variants§
True
true test
False
false test
Header
header test: header [“comparator”] [“match-type”] <header-names: string-list> <key-list: string-list>
Address
address test: address [“comparator”] [“match-type”] <header-list> <key-list>
Envelope
envelope test
Exists(Vec<String>)
exists test: exists <header-names: string-list>
Size
size test: size <“:over” / “:under”> <limit: number>
AllOf(Vec<SieveTest>)
allof test: allof <tests: test-list>
AnyOf(Vec<SieveTest>)
anyof test: anyof <tests: test-list>
Not(Box<SieveTest>)
not test: not <test>
Trait Implementations§
impl StructuralPartialEq for SieveTest
Auto Trait Implementations§
impl Freeze for SieveTest
impl RefUnwindSafe for SieveTest
impl Send for SieveTest
impl Sync for SieveTest
impl Unpin for SieveTest
impl UnsafeUnpin for SieveTest
impl UnwindSafe for SieveTest
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§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request