#[repr(u16)]pub enum DataType {
None = 0,
Key = 1,
Ciphertext = 2,
PasswordHash = 3,
Share = 4,
SigningKey = 5,
Signature = 6,
OnlineCiphertext = 7,
}
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.
OnlineCiphertext = 7
A wrapped online ciphertextr that can be encrypted/decrypted chunk by chunk
Trait Implementations§
Source§impl TryFromPrimitive for DataType
impl TryFromPrimitive for DataType
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.