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

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>,
}
Expand description

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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.

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.