pub struct InboundMessage {
pub id: String,
pub from: String,
pub to: Vec<String>,
pub cc: Vec<String>,
pub subject: String,
pub text: Option<String>,
pub html: Option<String>,
pub headers: Vec<(String, String)>,
pub received_at: Option<i64>,
}Expand description
Fields§
§id: StringThe provider’s own id for the message: the dedup key, so
event_key claims a redelivery once.
from: StringThe sender address as the provider spells it: some vendors send a
bare address, others a display name too (Name <user@example.com>).
to: Vec<String>The envelope recipients.
cc: Vec<String>The Cc recipients the payload names, if any.
subject: StringThe subject line.
text: Option<String>The plain-text body, when the delivery carries it.
html: Option<String>The HTML body, when the delivery carries it.
headers: Vec<(String, String)>Extra headers the vendor hands over (Message-ID, In-Reply-To),
in order. Empty when the delivery names none.
received_at: Option<i64>When the provider says it received the message, Unix seconds.
Implementations§
Trait Implementations§
Source§impl Clone for InboundMessage
impl Clone for InboundMessage
Source§impl Debug for InboundMessage
impl Debug for InboundMessage
Source§impl<'de> Deserialize<'de> for InboundMessage
impl<'de> Deserialize<'de> for InboundMessage
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 InboundMessage
Source§impl PartialEq for InboundMessage
impl PartialEq for InboundMessage
Source§impl Serialize for InboundMessage
impl Serialize for InboundMessage
impl StructuralPartialEq for InboundMessage
Auto Trait Implementations§
impl Freeze for InboundMessage
impl RefUnwindSafe for InboundMessage
impl Send for InboundMessage
impl Sync for InboundMessage
impl Unpin for InboundMessage
impl UnsafeUnpin for InboundMessage
impl UnwindSafe for InboundMessage
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.