pub struct Match {Show 15 fields
pub from: Option<TextMatch>,
pub to: Option<TextMatch>,
pub cc: Option<TextMatch>,
pub subject: Option<TextMatch>,
pub body: Option<TextMatch>,
pub header: Option<OneOrMany<HeaderMatch>>,
pub older_than: Option<String>,
pub larger_than: Option<String>,
pub seen: Option<bool>,
pub flagged: Option<bool>,
pub to_me: Option<bool>,
pub alias: Option<String>,
pub tag: Option<String>,
pub none: Option<Vec<Match>>,
pub any: Option<Vec<Match>>,
}Fields§
§from: Option<TextMatch>The From header
to: Option<TextMatch>The To header
cc: Option<TextMatch>The Cc header
subject: Option<TextMatch>The subject
body: Option<TextMatch>The plain-text body; HTML mail is converted
header: Option<OneOrMany<HeaderMatch>>Any header, by name; a list must all match
older_than: Option<String>Arrived at least this long ago, e.g. 30m, 1h, 2days
larger_than: Option<String>Larger than this size, e.g. 500KB, 5MB; a bare number is bytes and 1KB is 1024 bytes
seen: Option<bool>Read (true) or unread (false)
flagged: Option<bool>Flagged (true) or not (false)
to_me: Option<bool>To, Cc or Delivered-To holds your address or an alias
alias: Option<String>Sent to this alias; * is a wildcard
tag: Option<String>Carries this IMAP keyword, which Thunderbird shows as a tag (e.g. $label1); case-insensitive
none: Option<Vec<Match>>Holds when no entry holds; an entry holds when all its conditions do
any: Option<Vec<Match>>Holds when at least one of these holds
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Match
impl<'de> Deserialize<'de> for Match
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 JsonSchema for Match
impl JsonSchema for Match
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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