#[non_exhaustive]pub struct DraftMessage {
pub id: i64,
pub subject: Option<String>,
pub updated_at: Option<DateTime>,
pub creator: Option<Contact>,
pub account_id: Option<i64>,
pub summary: Option<String>,
pub url: Option<String>,
pub app_url: Option<String>,
pub edit_url: Option<String>,
pub addressed_contacts: Option<Vec<Contact>>,
pub scheduled_delivery_at: Option<DateTime>,
}Expand description
DraftMessage — a draft entry
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§subject: Option<String>§updated_at: Option<DateTime>ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
creator: Option<Contact>§account_id: Option<i64>§summary: Option<String>§url: Option<String>§app_url: Option<String>§edit_url: Option<String>§addressed_contacts: Option<Vec<Contact>>§scheduled_delivery_at: Option<DateTime>ISO 8601 date-time timestamp (overrides restJson1 epoch-seconds default)
Trait Implementations§
Source§impl Clone for DraftMessage
impl Clone for DraftMessage
Source§fn clone(&self) -> DraftMessage
fn clone(&self) -> DraftMessage
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 DraftMessage
impl Debug for DraftMessage
Source§impl Default for DraftMessage
impl Default for DraftMessage
Source§fn default() -> DraftMessage
fn default() -> DraftMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DraftMessage
impl<'de> Deserialize<'de> for DraftMessage
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 DraftMessage
impl PartialEq for DraftMessage
Source§impl Serialize for DraftMessage
impl Serialize for DraftMessage
impl StructuralPartialEq for DraftMessage
Auto Trait Implementations§
impl Freeze for DraftMessage
impl RefUnwindSafe for DraftMessage
impl Send for DraftMessage
impl Sync for DraftMessage
impl Unpin for DraftMessage
impl UnsafeUnpin for DraftMessage
impl UnwindSafe for DraftMessage
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