#[non_exhaustive]pub struct MessageDraft {
pub url: Option<String>,
pub creator: Option<Contact>,
pub sender: Option<Contact>,
pub is_reply: Option<bool>,
pub subject: Option<String>,
pub content: Option<String>,
pub addressed: Option<Addressed>,
pub show_addressed_selector: Option<bool>,
pub posting: Option<MessagePostingContext>,
pub addressed_sender: Option<AddressedSender>,
}Expand description
MessageDraft — a prefilled compose payload (forward, reply). Unsent, so it has no id.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: Option<String>§creator: Option<Contact>§sender: Option<Contact>§is_reply: Option<bool>§subject: Option<String>§content: Option<String>§addressed: Option<Addressed>§show_addressed_selector: Option<bool>§posting: Option<MessagePostingContext>§addressed_sender: Option<AddressedSender>Trait Implementations§
Source§impl Clone for MessageDraft
impl Clone for MessageDraft
Source§fn clone(&self) -> MessageDraft
fn clone(&self) -> MessageDraft
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 MessageDraft
impl Debug for MessageDraft
Source§impl Default for MessageDraft
impl Default for MessageDraft
Source§fn default() -> MessageDraft
fn default() -> MessageDraft
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageDraft
impl<'de> Deserialize<'de> for MessageDraft
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 for MessageDraft
impl PartialEq for MessageDraft
Source§impl Serialize for MessageDraft
impl Serialize for MessageDraft
impl StructuralPartialEq for MessageDraft
Auto Trait Implementations§
impl Freeze for MessageDraft
impl RefUnwindSafe for MessageDraft
impl Send for MessageDraft
impl Sync for MessageDraft
impl Unpin for MessageDraft
impl UnsafeUnpin for MessageDraft
impl UnwindSafe for MessageDraft
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