pub struct InboundMail {
pub message_id: String,
pub from: String,
pub to: Vec<String>,
pub subject: Option<String>,
pub held: bool,
pub reason: Option<String>,
}Expand description
What an inbound delivery said, metadata only. A held message carries nothing beyond its id and reason — no sender, recipients, subject or body — because the adapter’s envelope never carries them; a hook that wants them fetches from Owlpost itself.
Fields§
§message_id: StringOwlpost’s message id — the join key back to the provider.
from: StringThe sender. Empty for a held message, which names nobody.
to: Vec<String>The receiving addresses.
subject: Option<String>The subject line, when the delivery said.
held: booltrue for message.held: quarantined, not received.
reason: Option<String>Why a held message was held, when the delivery said.
Trait Implementations§
Source§impl Clone for InboundMail
impl Clone for InboundMail
Source§impl Debug for InboundMail
impl Debug for InboundMail
Source§impl<'de> Deserialize<'de> for InboundMail
impl<'de> Deserialize<'de> for InboundMail
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
impl Eq for InboundMail
Source§impl PartialEq for InboundMail
impl PartialEq for InboundMail
Source§impl Serialize for InboundMail
impl Serialize for InboundMail
impl StructuralPartialEq for InboundMail
Auto Trait Implementations§
impl Freeze for InboundMail
impl RefUnwindSafe for InboundMail
impl Send for InboundMail
impl Sync for InboundMail
impl Unpin for InboundMail
impl UnsafeUnpin for InboundMail
impl UnwindSafe for InboundMail
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.