[][src]Struct ruma_events::room::EncryptedFile

pub struct EncryptedFile {
    pub url: String,
    pub key: JsonWebKey,
    pub iv: String,
    pub hashes: BTreeMap<String, String>,
    pub v: String,
}

A file sent to a room with end-to-end encryption enabled.

Fields

url: String

The URL to the file.

key: JsonWebKey

A JSON Web Key object.

iv: String

The initialization vector used by AES-CTR, encoded as unpadded base64.

hashes: BTreeMap<String, String>

A map from an algorithm name to a hash of the ciphertext, encoded as unpadded base64. Clients should support the SHA-256 hash, which uses the key sha256.

v: String

Version of the encrypted attachments protocol. Must be v2.

Trait Implementations

impl Clone for EncryptedFile[src]

impl Debug for EncryptedFile[src]

impl<'de> Deserialize<'de> for EncryptedFile[src]

impl Serialize for EncryptedFile[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,