Struct ruma_common::events::secret_storage::secret::SecretEventContent
source · [−]pub struct SecretEventContent {
pub encrypted: BTreeMap<String, SecretEncryptedData>,
}
Available on crate feature
events
only.Expand description
A secret and its encrypted contents.
Fields
encrypted: BTreeMap<String, SecretEncryptedData>
Map from key ID to the encrypted data.
The exact format for the encrypted data is dependent on the key algorithm.
Implementations
sourceimpl SecretEventContent
impl SecretEventContent
sourcepub fn new(encrypted: BTreeMap<String, SecretEncryptedData>) -> Self
pub fn new(encrypted: BTreeMap<String, SecretEncryptedData>) -> Self
Create a new SecretEventContent
with the given encrypted content.
Trait Implementations
sourceimpl Clone for SecretEventContent
impl Clone for SecretEventContent
sourcefn clone(&self) -> SecretEventContent
fn clone(&self) -> SecretEventContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SecretEventContent
impl Debug for SecretEventContent
sourceimpl<'de> Deserialize<'de> for SecretEventContent
impl<'de> Deserialize<'de> for SecretEventContent
sourcefn 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
sourceimpl Serialize for SecretEventContent
impl Serialize for SecretEventContent
Auto Trait Implementations
impl RefUnwindSafe for SecretEventContent
impl Send for SecretEventContent
impl Sync for SecretEventContent
impl Unpin for SecretEventContent
impl UnwindSafe for SecretEventContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more