pub struct Rustcrypto { /* private fields */ }Expand description
A type representing an actor’s cryptography information
It includes a private key, plus its ID
Implementations§
Source§impl Rustcrypto
impl Rustcrypto
Sourcepub fn new(key_id: String, private_key: RsaPrivateKey) -> Self
pub fn new(key_id: String, private_key: RsaPrivateKey) -> Self
Create a new rustcrypto cryptography type from a private key and ID
Trait Implementations§
Source§impl Clone for Rustcrypto
impl Clone for Rustcrypto
Source§fn clone(&self) -> Rustcrypto
fn clone(&self) -> Rustcrypto
Returns a duplicate 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 Rustcrypto
impl Debug for Rustcrypto
Source§impl<'de> Deserialize<'de> for Rustcrypto
impl<'de> Deserialize<'de> for Rustcrypto
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 DigestFactory for Rustcrypto
impl DigestFactory for Rustcrypto
Source§type Digest = Sha256Digest
type Digest = Sha256Digest
The Digest type associated
Source§impl PrivateKey for Rustcrypto
impl PrivateKey for Rustcrypto
Auto Trait Implementations§
impl Freeze for Rustcrypto
impl RefUnwindSafe for Rustcrypto
impl Send for Rustcrypto
impl Sync for Rustcrypto
impl Unpin for Rustcrypto
impl UnwindSafe for Rustcrypto
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