Struct mailpot::QueueEntry
source · pub struct QueueEntry {
pub pk: i64,
pub queue: Queue,
pub list: Option<i64>,
pub comment: Option<String>,
pub to_addresses: String,
pub from_address: String,
pub subject: String,
pub message_id: String,
pub message: Vec<u8>,
pub timestamp: u64,
pub datetime: String,
}
Expand description
A queue entry.
Fields§
§pk: i64
Database primary key.
queue: Queue
Owner queue.
list: Option<i64>
Related list foreign key, optional.
comment: Option<String>
Entry comment, optional.
to_addresses: String
Entry recipients in rfc5322 format.
from_address: String
Entry submitter in rfc5322 format.
subject: String
Entry subject.
message_id: String
Entry Message-ID in rfc5322 format.
message: Vec<u8>
Message in rfc5322 format as bytes.
timestamp: u64
Unix timestamp of date.
datetime: String
Datetime as string.
Implementations§
Trait Implementations§
source§impl Clone for QueueEntry
impl Clone for QueueEntry
source§fn clone(&self) -> QueueEntry
fn clone(&self) -> QueueEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QueueEntry
impl Debug for QueueEntry
source§impl<'de> Deserialize<'de> for QueueEntry
impl<'de> Deserialize<'de> for QueueEntry
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 Display for QueueEntry
impl Display for QueueEntry
source§impl PartialEq<QueueEntry> for QueueEntry
impl PartialEq<QueueEntry> for QueueEntry
source§fn eq(&self, other: &QueueEntry) -> bool
fn eq(&self, other: &QueueEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for QueueEntry
impl Serialize for QueueEntry
impl Eq for QueueEntry
impl StructuralEq for QueueEntry
impl StructuralPartialEq for QueueEntry
Auto Trait Implementations§
impl RefUnwindSafe for QueueEntry
impl Send for QueueEntry
impl Sync for QueueEntry
impl Unpin for QueueEntry
impl UnwindSafe for QueueEntry
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.