Enum hsmtool::util::attribute::ObjectClass
source · #[repr(u64)]pub enum ObjectClass {
Data,
Certificate,
PublicKey,
PrivateKey,
SecretKey,
HwFeature,
DomainParameters,
Mechanism,
OtpKey,
UnknownObjectClass(u64),
}
Variants§
Data
Certificate
PublicKey
PrivateKey
SecretKey
HwFeature
DomainParameters
Mechanism
OtpKey
UnknownObjectClass(u64)
Trait Implementations§
source§impl Clone for ObjectClass
impl Clone for ObjectClass
source§fn clone(&self) -> ObjectClass
fn clone(&self) -> ObjectClass
Returns a copy of the value. Read more
1.0.0 · 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 ObjectClass
impl Debug for ObjectClass
source§impl<'de> Deserialize<'de> for ObjectClass
impl<'de> Deserialize<'de> for ObjectClass
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<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 From<ObjectClass> for ObjectClass
impl From<ObjectClass> for ObjectClass
source§impl From<ObjectClass> for u64
impl From<ObjectClass> for u64
source§fn from(enum_value: ObjectClass) -> Self
fn from(enum_value: ObjectClass) -> Self
Converts to this type from the input type.
source§impl From<u64> for ObjectClass
impl From<u64> for ObjectClass
source§impl FromPrimitive for ObjectClass
impl FromPrimitive for ObjectClass
source§impl Hash for ObjectClass
impl Hash for ObjectClass
source§impl PartialEq<ObjectClass> for ObjectClass
impl PartialEq<ObjectClass> for ObjectClass
source§fn eq(&self, other: &ObjectClass) -> bool
fn eq(&self, other: &ObjectClass) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ObjectClass
impl Serialize for ObjectClass
source§impl TryFrom<&AttrData> for ObjectClass
impl TryFrom<&AttrData> for ObjectClass
source§impl TryFrom<ObjectClass> for ObjectClass
impl TryFrom<ObjectClass> for ObjectClass
impl Copy for ObjectClass
impl Eq for ObjectClass
impl StructuralEq for ObjectClass
impl StructuralPartialEq for ObjectClass
Auto Trait Implementations§
impl RefUnwindSafe for ObjectClass
impl Send for ObjectClass
impl Sync for ObjectClass
impl Unpin for ObjectClass
impl UnwindSafe for ObjectClass
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.