pub struct NewMail { /* private fields */ }Expand description
A validated, sendable mailbox message under construction.
Implementations§
Source§impl NewMail
impl NewMail
Sourcepub fn question(
to_session: &str,
questions: Vec<MailQuestion>,
body: &str,
ttl_secs: Option<i64>,
) -> Result<Self, SessionStoreError>
pub fn question( to_session: &str, questions: Vec<MailQuestion>, body: &str, ttl_secs: Option<i64>, ) -> Result<Self, SessionStoreError>
A question message: 1–3 structured questions plus an optional freeform body. Fails closed on any bound violation.
Trait Implementations§
impl Eq for NewMail
impl StructuralPartialEq for NewMail
Auto Trait Implementations§
impl Freeze for NewMail
impl RefUnwindSafe for NewMail
impl Send for NewMail
impl Sync for NewMail
impl Unpin for NewMail
impl UnsafeUnpin for NewMail
impl UnwindSafe for NewMail
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,
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.