[][src]Struct matrix_sdk_crypto::olm::ExportedRoomKey

pub struct ExportedRoomKey {
    pub algorithm: EventEncryptionAlgorithm,
    pub room_id: RoomId,
    pub sender_key: String,
    pub session_id: String,
    pub session_key: ExportedGroupSessionKey,
    pub sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String>,
    pub forwarding_curve25519_key_chain: Vec<String>,
}

An exported version of a InboundGroupSession

This can be used to share the InboundGroupSession in an exported file.

Fields

algorithm: EventEncryptionAlgorithm

The encryption algorithm that the session uses.

room_id: RoomId

The room where the session is used.

sender_key: String

The Curve25519 key of the device which initiated the session originally.

session_id: String

The ID of the session that the key is for.

session_key: ExportedGroupSessionKey

The key for the session.

sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String>

The Ed25519 key of the device which initiated the session originally.

forwarding_curve25519_key_chain: Vec<String>

Chain of Curve25519 keys through which this session was forwarded, via m.forwarded_room_key events.

Trait Implementations

impl Clone for ExportedRoomKey[src]

impl Debug for ExportedRoomKey[src]

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

impl From<ForwardedRoomKeyToDeviceEventContent> for ExportedRoomKey[src]

pub fn from(forwarded_key: ForwardedRoomKeyToDeviceEventContent) -> Self[src]

Convert the content of a forwarded room key into a exported room key.

impl PartialEq<ExportedRoomKey> for ExportedRoomKey[src]

impl Serialize for ExportedRoomKey[src]

impl StructuralPartialEq for ExportedRoomKey[src]

impl TryFrom<ExportedRoomKey> for InboundGroupSession[src]

type Error = OlmGroupSessionError

The type returned in the event of a conversion error.

impl TryInto<ForwardedRoomKeyToDeviceEventContent> for ExportedRoomKey[src]

type Error = ()

The type returned in the event of a conversion error.

pub fn try_into(
    self
) -> Result<ForwardedRoomKeyToDeviceEventContent, Self::Error>
[src]

Convert an exported room key into a content for a forwarded room key event.

This will fail if the exported room key has multiple sender claimed keys or if the algorithm of the claimed sender key isn't DeviceKeyAlgorithm::Ed25519.

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsyncTraitDeps for T where
    T: Send + Sync + Debug
[src]

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

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

impl<T> Conv for T

impl<T> Conv for T

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

impl<T> FmtForward for T

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

impl<T> Instrument for T[src]

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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>,