Struct matrix_sdk_crypto::EncryptionSettings [−][src]
pub struct EncryptionSettings {
pub algorithm: EventEncryptionAlgorithm,
pub rotation_period: Duration,
pub rotation_period_msgs: u64,
pub history_visibility: HistoryVisibility,
}Expand description
Settings for an encrypted room.
This determines the algorithm and rotation periods of a group session.
Fields
algorithm: EventEncryptionAlgorithmThe encryption algorithm that should be used in the room.
rotation_period: DurationHow long the session should be used before changing it.
rotation_period_msgs: u64How many messages should be sent before changing the session.
history_visibility: HistoryVisibilityThe history visibility of the room when the session was created.
Implementations
Trait Implementations
fn 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
Auto Trait Implementations
impl RefUnwindSafe for EncryptionSettingsimpl Send for EncryptionSettingsimpl Sync for EncryptionSettingsimpl Unpin for EncryptionSettingsimpl UnwindSafe for EncryptionSettingsBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self