Enum devolutions_crypto::DataType
source · #[repr(u16)]pub enum DataType {
None = 0,
Key = 1,
Ciphertext = 2,
PasswordHash = 3,
Share = 4,
SigningKey = 5,
Signature = 6,
}Expand description
The different data types.
Variants§
None = 0
No data type. Only used as a default value.
Key = 1
A wrapped key.
Ciphertext = 2
A wrapped ciphertext. Can be either symmetric or asymmetric.
PasswordHash = 3
A wrapped password hash. Used to verify a password.
A wrapped share. Used for secret sharing scheme.
SigningKey = 5
A wrapped key used to sign data.
Signature = 6
A wrapped signature.
Trait Implementations§
source§impl PartialEq for DataType
impl PartialEq for DataType
source§impl TryFrom<u16> for DataType
impl TryFrom<u16> for DataType
§type Error = TryFromPrimitiveError<DataType>
type Error = TryFromPrimitiveError<DataType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for DataType
impl TryFromPrimitive for DataType
impl Copy for DataType
impl Eq for DataType
impl StructuralEq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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