pub enum MailtoField {
To,
Cc,
Bcc,
Subject,
Body,
Other(String),
}Expand description
Standard mailto: query field names plus custom fields.
Variants§
To
to field.
Cc
cc field.
Bcc
bcc field.
Subject
subject field.
Body
body field.
Other(String)
Custom field name.
Implementations§
Source§impl MailtoField
impl MailtoField
Sourcepub fn other(value: impl AsRef<str>) -> Result<MailtoField, MailtoError>
pub fn other(value: impl AsRef<str>) -> Result<MailtoField, MailtoError>
Creates a custom field name.
Trait Implementations§
Source§impl Clone for MailtoField
impl Clone for MailtoField
Source§fn clone(&self) -> MailtoField
fn clone(&self) -> MailtoField
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 MailtoField
impl Debug for MailtoField
Source§impl Display for MailtoField
impl Display for MailtoField
Source§impl Hash for MailtoField
impl Hash for MailtoField
Source§impl Ord for MailtoField
impl Ord for MailtoField
Source§fn cmp(&self, other: &MailtoField) -> Ordering
fn cmp(&self, other: &MailtoField) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MailtoField
impl PartialEq for MailtoField
Source§fn eq(&self, other: &MailtoField) -> bool
fn eq(&self, other: &MailtoField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MailtoField
impl PartialOrd for MailtoField
impl Eq for MailtoField
impl StructuralPartialEq for MailtoField
Auto Trait Implementations§
impl Freeze for MailtoField
impl RefUnwindSafe for MailtoField
impl Send for MailtoField
impl Sync for MailtoField
impl Unpin for MailtoField
impl UnsafeUnpin for MailtoField
impl UnwindSafe for MailtoField
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