pub enum AttrData {
    None,
    Bool(bool),
    Ulong(u64),
    CertificateType(CertificateType),
    KeyType(KeyType),
    MechanismType(MechanismType),
    ObjectClass(ObjectClass),
    Redacted(Redacted),
    Str(String),
    List(Vec<AttrData>),
}Variants§
None
Bool(bool)
Ulong(u64)
CertificateType(CertificateType)
KeyType(KeyType)
MechanismType(MechanismType)
ObjectClass(ObjectClass)
Redacted(Redacted)
Str(String)
List(Vec<AttrData>)
Implementations§
Source§impl AttrData
 
impl AttrData
pub fn is_none(&self) -> bool
pub fn from_ascii_bytes(v: &[u8]) -> Self
pub fn try_str(&self) -> Result<&str, AttributeError>
pub fn try_string(&self) -> Result<String, AttributeError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AttrData
 
impl<'de> Deserialize<'de> for AttrData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CertificateType> for AttrData
 
impl From<CertificateType> for AttrData
Source§fn from(val: CertificateType) -> Self
 
fn from(val: CertificateType) -> Self
Converts to this type from the input type.
Source§impl From<MechanismType> for AttrData
 
impl From<MechanismType> for AttrData
Source§fn from(val: MechanismType) -> Self
 
fn from(val: MechanismType) -> Self
Converts to this type from the input type.
Source§impl From<ObjectClass> for AttrData
 
impl From<ObjectClass> for AttrData
Source§fn from(val: ObjectClass) -> Self
 
fn from(val: ObjectClass) -> Self
Converts to this type from the input type.
Source§impl TryFrom<&AttrData> for CertificateType
 
impl TryFrom<&AttrData> for CertificateType
Source§impl TryFrom<&AttrData> for MechanismType
 
impl TryFrom<&AttrData> for MechanismType
Source§impl TryFrom<&AttrData> for ObjectClass
 
impl TryFrom<&AttrData> for ObjectClass
impl Eq for AttrData
impl StructuralPartialEq for AttrData
Auto Trait Implementations§
impl Freeze for AttrData
impl RefUnwindSafe for AttrData
impl Send for AttrData
impl Sync for AttrData
impl Unpin for AttrData
impl UnwindSafe for AttrData
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,
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.