pub enum AttributeValue {
Text(String),
Ber(Vec<u8>),
}Expand description
An RDN value: text, or the BER encoding that RFC 4514 section 2.4 writes
as # and hex digits.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AttributeValue
impl Clone for AttributeValue
Source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
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 AttributeValue
impl Debug for AttributeValue
Source§impl Display for AttributeValue
impl Display for AttributeValue
impl Eq for AttributeValue
Source§impl From<&str> for AttributeValue
impl From<&str> for AttributeValue
Source§fn from(text: &str) -> AttributeValue
fn from(text: &str) -> AttributeValue
Converts to this type from the input type.
Source§impl From<String> for AttributeValue
impl From<String> for AttributeValue
Source§fn from(text: String) -> AttributeValue
fn from(text: String) -> AttributeValue
Converts to this type from the input type.
Source§impl Hash for AttributeValue
impl Hash for AttributeValue
Source§impl PartialEq for AttributeValue
impl PartialEq for AttributeValue
Source§impl PartialEq<&str> for AttributeValue
impl PartialEq<&str> for AttributeValue
Source§impl PartialEq<str> for AttributeValue
impl PartialEq<str> for AttributeValue
impl StructuralPartialEq for AttributeValue
Auto Trait Implementations§
impl Forget for AttributeValue
impl Freeze for AttributeValue
impl Move for AttributeValue
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnsafeUnpin for AttributeValue
impl UnwindSafe for AttributeValue
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