pub struct DraftSpec {
pub kind: DraftKind,
pub to: Vec<MessageFrom>,
pub cc: Vec<MessageFrom>,
pub bcc: Vec<MessageFrom>,
pub subject: Option<String>,
pub body: String,
}Expand description
Draft content. Recipients are resolved addresses; on a reply they are added to what the provider fills in.
Fields§
§kind: DraftKind§to: Vec<MessageFrom>§cc: Vec<MessageFrom>§bcc: Vec<MessageFrom>§subject: Option<String>New mail only; replies and forwards keep the original’s.
body: StringPlain text; blank lines separate paragraphs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DraftSpec
impl<'de> Deserialize<'de> for DraftSpec
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
impl Eq for DraftSpec
impl StructuralPartialEq for DraftSpec
Auto Trait Implementations§
impl Forget for DraftSpec
impl Freeze for DraftSpec
impl Move for DraftSpec
impl RefUnwindSafe for DraftSpec
impl Send for DraftSpecwhere
RawVecInner: Send,
impl Sync for DraftSpecwhere
RawVecInner: Sync,
impl Unpin for DraftSpec
impl UnsafeUnpin for DraftSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MessageFrom>: UnsafeUnpin,
impl UnwindSafe for DraftSpecwhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.