pub enum DsnpVersionConfig {
Version1_0 {
algorithm: SealBox,
},
}
Expand description
Dsnp versions hardcoded configuration
Variants§
Implementations§
source§impl DsnpVersionConfig
impl DsnpVersionConfig
sourcepub fn new(version: DsnpVersion) -> Self
pub fn new(version: DsnpVersion) -> Self
creates a new DsnpVersionConfig
based on the version enum
sourcepub fn get_algorithm(&self) -> Box<dyn EncryptionBehavior>
pub fn get_algorithm(&self) -> Box<dyn EncryptionBehavior>
returns the encryption/description algorithm associated with dsnp version
Trait Implementations§
source§impl Clone for DsnpVersionConfig
impl Clone for DsnpVersionConfig
source§fn clone(&self) -> DsnpVersionConfig
fn clone(&self) -> DsnpVersionConfig
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 DsnpVersionConfig
impl Debug for DsnpVersionConfig
source§impl Hash for DsnpVersionConfig
impl Hash for DsnpVersionConfig
source§impl Into<DsnpVersionConfig> for &KeyPairType
impl Into<DsnpVersionConfig> for &KeyPairType
converts a KeyPairType
into a DsnpVersionConfig
source§fn into(self) -> DsnpVersionConfig
fn into(self) -> DsnpVersionConfig
Converts this type into the (usually inferred) input type.
source§impl Into<DsnpVersionConfig> for &PublicKeyType
impl Into<DsnpVersionConfig> for &PublicKeyType
converts a PublicKeyType
into a DsnpVersionConfig
source§fn into(self) -> DsnpVersionConfig
fn into(self) -> DsnpVersionConfig
Converts this type into the (usually inferred) input type.
source§impl Into<DsnpVersionConfig> for &SecretKeyType
impl Into<DsnpVersionConfig> for &SecretKeyType
converts a SecretKeyType
into a DsnpVersionConfig
source§fn into(self) -> DsnpVersionConfig
fn into(self) -> DsnpVersionConfig
Converts this type into the (usually inferred) input type.
source§impl PartialEq for DsnpVersionConfig
impl PartialEq for DsnpVersionConfig
source§fn eq(&self, other: &DsnpVersionConfig) -> bool
fn eq(&self, other: &DsnpVersionConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DsnpVersionConfig
impl StructuralEq for DsnpVersionConfig
impl StructuralPartialEq for DsnpVersionConfig
Auto Trait Implementations§
impl RefUnwindSafe for DsnpVersionConfig
impl Send for DsnpVersionConfig
impl Sync for DsnpVersionConfig
impl Unpin for DsnpVersionConfig
impl UnwindSafe for DsnpVersionConfig
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