#[non_exhaustive]pub enum EmailType {
Mx,
Mxe,
Forward,
PrivateEmail,
Gmail,
}Expand description
The mail setting to apply when calling Dns::set_hosts.
Namecheap stores a single email routing mode per domain alongside the host
records. Set EmailType::Mx when supplying your own MX records (for
Google Workspace, Fastmail, and so on).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mx
Custom user-defined MX records.
Mxe
Namecheap email forwarding via MXE.
Forward
Namecheap email forwarding.
PrivateEmail
Namecheap Private Email (Open-Xchange).
Gmail
Google Workspace / Gmail preset.
Implementations§
Source§impl EmailType
impl EmailType
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The value Namecheap expects for this setting in the EmailType
parameter.
Sourcepub fn from_api_str(value: &str) -> Option<Self>
pub fn from_api_str(value: &str) -> Option<Self>
Parses an email type from the string Namecheap reports (for example in a
Dns::get_hosts response). Case-insensitive; returns None for an
unrecognized value such as "NONE".
Trait Implementations§
impl Copy for EmailType
impl Eq for EmailType
impl StructuralPartialEq for EmailType
Auto Trait Implementations§
impl Freeze for EmailType
impl RefUnwindSafe for EmailType
impl Send for EmailType
impl Sync for EmailType
impl Unpin for EmailType
impl UnsafeUnpin for EmailType
impl UnwindSafe for EmailType
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