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 PartialEq<AttrData> for AttrData
impl PartialEq<AttrData> for AttrData
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 StructuralEq for AttrData
impl StructuralPartialEq for AttrData
Auto Trait Implementations§
impl RefUnwindSafe for AttrData
impl Send for AttrData
impl Sync for AttrData
impl Unpin for AttrData
impl UnwindSafe for AttrData
Blanket Implementations§
§impl<T> Annotate for Twhere
T: Serialize + ?Sized,
impl<T> Annotate for Twhere T: Serialize + ?Sized,
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_> ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_> ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_> ) -> Result<Document, Error>
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.