Struct matrix_sdk::EncryptionInfo [−]
pub struct EncryptionInfo {
pub version: String,
pub web_key: JsonWebKey,
pub iv: String,
pub hashes: BTreeMap<String, String>,
}This is supported on
encryption only.Expand description
Struct holding all the information that is needed to decrypt an encrypted file.
Fields
version: StringThe version of the encryption scheme.
web_key: JsonWebKeyThe web key that was used to encrypt the file.
iv: StringThe initialization vector that was used to encrypt the file.
hashes: BTreeMap<String, String>The hashes that can be used to check the validity of the file.
Trait Implementations
impl Debug for EncryptionInfo
impl Debug for EncryptionInfo
impl<'de> Deserialize<'de> for EncryptionInfo
impl<'de> Deserialize<'de> for EncryptionInfo
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<EncryptionInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<EncryptionInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<EncryptedFile> for EncryptionInfo
impl From<EncryptedFile> for EncryptionInfo
pub fn from(file: EncryptedFile) -> EncryptionInfo
pub fn from(file: EncryptedFile) -> EncryptionInfo
Performs the conversion.
impl Serialize for EncryptionInfo
impl Serialize for EncryptionInfo
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for EncryptionInfo
impl Send for EncryptionInfo
impl Sync for EncryptionInfo
impl Unpin for EncryptionInfo
impl UnwindSafe for EncryptionInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more