Struct dco3_crypto::PrivateKeyContainer
source · pub struct PrivateKeyContainer {
pub version: UserKeyPairVersion,
pub private_key: String,
pub created_at: Option<String>,
pub expire_at: Option<String>,
pub created_by: Option<u64>,
}
Expand description
Container holding only the private key used for file key decryption
Fields§
§version: UserKeyPairVersion
§private_key: String
§created_at: Option<String>
§expire_at: Option<String>
§created_by: Option<u64>
Implementations§
source§impl PrivateKeyContainer
impl PrivateKeyContainer
sourcepub fn new(private_key_pem: String, version: UserKeyPairVersion) -> Self
pub fn new(private_key_pem: String, version: UserKeyPairVersion) -> Self
Create a new private key container from PEM
Trait Implementations§
source§impl Clone for PrivateKeyContainer
impl Clone for PrivateKeyContainer
source§fn clone(&self) -> PrivateKeyContainer
fn clone(&self) -> PrivateKeyContainer
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 PrivateKeyContainer
impl Debug for PrivateKeyContainer
source§impl<'de> Deserialize<'de> for PrivateKeyContainer
impl<'de> Deserialize<'de> for PrivateKeyContainer
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 PrivateKey for PrivateKeyContainer
impl PrivateKey for PrivateKeyContainer
Returns the private key of a private key container as reference
fn get_private_key(&self) -> &PrivateKeyContainer
Auto Trait Implementations§
impl Freeze for PrivateKeyContainer
impl RefUnwindSafe for PrivateKeyContainer
impl Send for PrivateKeyContainer
impl Sync for PrivateKeyContainer
impl Unpin for PrivateKeyContainer
impl UnwindSafe for PrivateKeyContainer
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