Enum yubihsm::object::Type
[−]
[src]
pub enum Type { Opaque, AuthKey, Asymmetric, WrapKey, HMACKey, Template, OTPAEADKey, }
Types of objects
Variants
Opaque
Raw data
AuthKey
Authentication keys for establishing sessions
Asymmetric
Asymmetric private keys
WrapKey
Key-wrapping key for exporting/importing keys
HMACKey
HMAC secret key
Template
Binary template used to validate SSH certificate requests
OTPAEADKey
Yubikey-AES OTP encryption/decryption key
Methods
impl Type
[src]
pub fn from_u8(byte: u8) -> Result<Self, Error>
[src]
Convert an unsigned byte into a ObjectType (if valid)
pub fn to_u8(&self) -> u8
[src]
Serialize this object type as a byte
Trait Implementations
impl Copy for Type
[src]
impl Clone for Type
[src]
fn clone(&self) -> Type
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Type
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Type
[src]
impl PartialEq for Type
[src]
fn eq(&self, __arg_0: &Type) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Serialize for Type
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Type
[src]
fn deserialize<D>(deserializer: D) -> Result<Type, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more