pub struct KeyPackageKeyPair(/* private fields */);
Implementations§
Source§impl KeyPackageKeyPair
impl KeyPackageKeyPair
pub fn extract_public_key(&mut self) -> SensitiveBytes
pub fn extract_secret_key(&mut self) -> SensitiveBytes
Trait Implementations§
Source§impl Clone for KeyPackageKeyPair
impl Clone for KeyPackageKeyPair
Source§fn clone(&self) -> KeyPackageKeyPair
fn clone(&self) -> KeyPackageKeyPair
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 KeyPackageKeyPair
impl Debug for KeyPackageKeyPair
Source§impl Deref for KeyPackageKeyPair
impl Deref for KeyPackageKeyPair
Source§impl<'de> Deserialize<'de> for KeyPackageKeyPair
impl<'de> Deserialize<'de> for KeyPackageKeyPair
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 From<HpkeKeyPair> for KeyPackageKeyPair
impl From<HpkeKeyPair> for KeyPackageKeyPair
Source§fn from(value: HpkeKeyPair) -> Self
fn from(value: HpkeKeyPair) -> Self
Converts to this type from the input type.
Source§impl From<KeyPair> for KeyPackageKeyPair
impl From<KeyPair> for KeyPackageKeyPair
Source§impl PartialEq for KeyPackageKeyPair
impl PartialEq for KeyPackageKeyPair
Source§impl Serialize for KeyPackageKeyPair
impl Serialize for KeyPackageKeyPair
impl Eq for KeyPackageKeyPair
impl StructuralPartialEq for KeyPackageKeyPair
Auto Trait Implementations§
impl Freeze for KeyPackageKeyPair
impl RefUnwindSafe for KeyPackageKeyPair
impl Send for KeyPackageKeyPair
impl Sync for KeyPackageKeyPair
impl Unpin for KeyPackageKeyPair
impl UnwindSafe for KeyPackageKeyPair
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