pub struct LocalMailboxMessage {
pub local_id: Uuid,
pub envelope: Envelope,
pub state: MailboxState,
pub plaintext: Option<String>,
pub inspection: Option<InspectionReport>,
pub updated_at: DateTime<Utc>,
}Fields§
§local_id: Uuid§envelope: Envelope§state: MailboxState§plaintext: Option<String>§inspection: Option<InspectionReport>§updated_at: DateTime<Utc>Implementations§
Source§impl LocalMailboxMessage
impl LocalMailboxMessage
pub fn fetched(envelope: Envelope) -> Self
pub fn verify(self) -> Result<Self, MailboxError>
pub fn inspect(self, secret: &ThreadSecret) -> Result<Self, MailboxError>
pub fn release(self) -> Result<Self, MailboxError>
pub fn quarantine(self, reason: impl Into<String>) -> Result<Self, MailboxError>
Trait Implementations§
Source§impl Clone for LocalMailboxMessage
impl Clone for LocalMailboxMessage
Source§fn clone(&self) -> LocalMailboxMessage
fn clone(&self) -> LocalMailboxMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LocalMailboxMessage
impl Debug for LocalMailboxMessage
Source§impl<'de> Deserialize<'de> for LocalMailboxMessage
impl<'de> Deserialize<'de> for LocalMailboxMessage
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
Auto Trait Implementations§
impl Freeze for LocalMailboxMessage
impl RefUnwindSafe for LocalMailboxMessage
impl Send for LocalMailboxMessage
impl Sync for LocalMailboxMessage
impl Unpin for LocalMailboxMessage
impl UnsafeUnpin for LocalMailboxMessage
impl UnwindSafe for LocalMailboxMessage
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