pub struct EmailMetadata {
pub message_id: String,
pub from: String,
pub rcpt: String,
pub subject: String,
pub path: PathBuf,
}Fields§
§message_id: String§from: String§rcpt: String§subject: String§path: PathBufImplementations§
Source§impl EmailMetadata
impl EmailMetadata
pub fn new( message_id: String, from: String, rcpt: String, subject: String, path: PathBuf, ) -> Self
pub async fn store_sqlite( &self, db: impl AsRef<Path>, ) -> Result<(), Box<dyn Error + Send + Sync>>
pub async fn retrieve_sqlite( db: impl AsRef<Path>, message_id: String, ) -> Result<EmailMetadata, Box<dyn Error + Send + Sync>>
Trait Implementations§
Source§impl Clone for EmailMetadata
impl Clone for EmailMetadata
Source§fn clone(&self) -> EmailMetadata
fn clone(&self) -> EmailMetadata
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for EmailMetadata
impl RefUnwindSafe for EmailMetadata
impl Send for EmailMetadata
impl Sync for EmailMetadata
impl Unpin for EmailMetadata
impl UnsafeUnpin for EmailMetadata
impl UnwindSafe for EmailMetadata
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