#[non_exhaustive]pub enum SdesItemType {
CName,
Name,
Email,
Phone,
Loc,
Tool,
Note,
Priv,
Unknown(u8),
}Expand description
SDES item type (RFC 3550 §6.5). Byte-valued; type 0 is the item terminator.
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.
CName
Canonical end-point identifier (CNAME = 1).
Name
User name (NAME = 2).
Electronic mail address (EMAIL = 3).
Phone
Phone number (PHONE = 4).
Loc
Geographic location (LOC = 5).
Tool
Application / tool name+version (TOOL = 6).
Note
Notice / status (NOTE = 7).
Priv
Private extension (PRIV = 8).
Unknown(u8)
A type outside the RFC 3550 §6.5 set (never the 0 terminator).
Implementations§
Trait Implementations§
Source§impl Clone for SdesItemType
impl Clone for SdesItemType
Source§fn clone(&self) -> SdesItemType
fn clone(&self) -> SdesItemType
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 moreimpl Copy for SdesItemType
Source§impl Debug for SdesItemType
impl Debug for SdesItemType
Source§impl Display for SdesItemType
impl Display for SdesItemType
impl Eq for SdesItemType
Source§impl PartialEq for SdesItemType
impl PartialEq for SdesItemType
Source§impl Serialize for SdesItemType
Available on crate feature serde only.
impl Serialize for SdesItemType
Available on crate feature
serde only.impl StructuralPartialEq for SdesItemType
Auto Trait Implementations§
impl Freeze for SdesItemType
impl RefUnwindSafe for SdesItemType
impl Send for SdesItemType
impl Sync for SdesItemType
impl Unpin for SdesItemType
impl UnsafeUnpin for SdesItemType
impl UnwindSafe for SdesItemType
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