#[non_exhaustive]pub struct MessageEditState {Show 14 fields
pub id: i64,
pub created_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
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 scheduled_delivery_at: Option<DateTime>,
pub posting: Option<MessagePostingContext>,
pub addressed_sender: Option<AddressedSender>,
}Expand description
MessageEditState — a saved draft as the editor sees it. The same compose fields as MessageDraft, plus the identity and scheduling a saved entry carries.
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.id: i64§created_at: Option<DateTime>ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
updated_at: Option<DateTime>ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
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>§scheduled_delivery_at: Option<DateTime>ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
posting: Option<MessagePostingContext>§addressed_sender: Option<AddressedSender>Trait Implementations§
Source§impl Clone for MessageEditState
impl Clone for MessageEditState
Source§fn clone(&self) -> MessageEditState
fn clone(&self) -> MessageEditState
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 MessageEditState
impl Debug for MessageEditState
Source§impl Default for MessageEditState
impl Default for MessageEditState
Source§fn default() -> MessageEditState
fn default() -> MessageEditState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageEditState
impl<'de> Deserialize<'de> for MessageEditState
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 MessageEditState
impl PartialEq for MessageEditState
Source§impl Serialize for MessageEditState
impl Serialize for MessageEditState
impl StructuralPartialEq for MessageEditState
Auto Trait Implementations§
impl Freeze for MessageEditState
impl RefUnwindSafe for MessageEditState
impl Send for MessageEditState
impl Sync for MessageEditState
impl Unpin for MessageEditState
impl UnsafeUnpin for MessageEditState
impl UnwindSafe for MessageEditState
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