enum OpenPgpUserIdType {
Email(EmailAddress),
Plain(String),
}
Expand description
A distinction between types of OpenPGP User IDs
Variants§
Email(EmailAddress)
An OpenPGP User ID that contains a valid e-mail address (e.g. “John Doe john@example.org”)
The e-mail address must use a top-level domain (TLD) and no domain literal (e.g. an IP address) is allowed.
Plain(String)
A plain OpenPGP User ID
The User ID may contain any UTF-8 character, but does not represent a valid e-mail address.
Trait Implementations§
source§impl Clone for OpenPgpUserIdType
impl Clone for OpenPgpUserIdType
source§fn clone(&self) -> OpenPgpUserIdType
fn clone(&self) -> OpenPgpUserIdType
Returns a copy of the value. Read more
1.0.0 · 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 OpenPgpUserIdType
impl Debug for OpenPgpUserIdType
source§impl Hash for OpenPgpUserIdType
impl Hash for OpenPgpUserIdType
source§impl PartialEq for OpenPgpUserIdType
impl PartialEq for OpenPgpUserIdType
impl Eq for OpenPgpUserIdType
impl StructuralPartialEq for OpenPgpUserIdType
Auto Trait Implementations§
impl Freeze for OpenPgpUserIdType
impl RefUnwindSafe for OpenPgpUserIdType
impl Send for OpenPgpUserIdType
impl Sync for OpenPgpUserIdType
impl Unpin for OpenPgpUserIdType
impl UnwindSafe for OpenPgpUserIdType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)