pub struct SdesItem<'a> { /* private fields */ }
Expand description
An SDES item
Implementations§
Source§impl<'a> SdesItem<'a>
impl<'a> SdesItem<'a>
pub const CNAME: u8 = 1u8
pub const NAME: u8 = 2u8
pub const EMAIL: u8 = 3u8
pub const PHONE: u8 = 4u8
pub const LOC: u8 = 5u8
pub const TOOL: u8 = 6u8
pub const NOTE: u8 = 7u8
pub const PRIV: u8 = 8u8
Sourcepub fn get_value_string(&self) -> Result<String, FromUtf8Error>
pub fn get_value_string(&self) -> Result<String, FromUtf8Error>
The value of this item as a string
Sourcepub fn priv_prefix_len(&self) -> u8
pub fn priv_prefix_len(&self) -> u8
Sourcepub fn priv_prefix(&self) -> &[u8] ⓘ
pub fn priv_prefix(&self) -> &[u8] ⓘ
Sourcepub fn builder(type_: u8, value: &'a str) -> SdesItemBuilder<'a>
pub fn builder(type_: u8, value: &'a str) -> SdesItemBuilder<'a>
Create a new SdesItemBuilder
Trait Implementations§
impl<'a> Eq for SdesItem<'a>
impl<'a> StructuralPartialEq for SdesItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for SdesItem<'a>
impl<'a> RefUnwindSafe for SdesItem<'a>
impl<'a> Send for SdesItem<'a>
impl<'a> Sync for SdesItem<'a>
impl<'a> Unpin for SdesItem<'a>
impl<'a> UnwindSafe for SdesItem<'a>
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