pub struct Post {
pub pk: i64,
pub list: i64,
pub envelope_from: Option<String>,
pub address: String,
pub message_id: String,
pub message: Vec<u8>,
pub timestamp: u64,
pub datetime: String,
pub month_year: String,
}
Expand description
A mailing list post entry.
Fields§
§pk: i64
Database primary key.
list: i64
Mailing list foreign key (See MailingList
).
envelope_from: Option<String>
Envelope From
of post.
address: String
From
header address of post.
message_id: String
Message-ID
header value of post.
message: Vec<u8>
Post as bytes.
timestamp: u64
Unix timestamp of date.
datetime: String
Date header as string.
month_year: String
Month-year as a YYYY-mm
formatted string, for use in archives.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Post
impl<'de> Deserialize<'de> for Post
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 PartialEq<Post> for Post
impl PartialEq<Post> for Post
impl Eq for Post
impl StructuralEq for Post
impl StructuralPartialEq for Post
Auto Trait Implementations§
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnwindSafe for Post
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<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.