Enum ruma_common::encryption::OneTimeKey
source · pub enum OneTimeKey {
SignedKey(SignedKey),
Key(String),
}
Expand description
A one-time public key for “pre-key” messages.
Variants§
SignedKey(SignedKey)
A key containing signatures, for the SignedCurve25519 algorithm.
Key(String)
A string-valued key, for the Ed25519 and Curve25519 algorithms.
Trait Implementations§
source§impl Clone for OneTimeKey
impl Clone for OneTimeKey
source§fn clone(&self) -> OneTimeKey
fn clone(&self) -> OneTimeKey
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 OneTimeKey
impl Debug for OneTimeKey
source§impl<'de> Deserialize<'de> for OneTimeKey
impl<'de> Deserialize<'de> for OneTimeKey
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
Auto Trait Implementations§
impl Freeze for OneTimeKey
impl RefUnwindSafe for OneTimeKey
impl Send for OneTimeKey
impl Sync for OneTimeKey
impl Unpin for OneTimeKey
impl UnwindSafe for OneTimeKey
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)