pub struct EncryptionSettings {
pub auto_enable_cross_signing: bool,
pub backup_download_strategy: BackupDownloadStrategy,
pub auto_enable_backups: bool,
}Available on crate feature
e2e-encryption only.Expand description
Settings for end-to-end encryption features.
Fields§
§auto_enable_cross_signing: boolAutomatically bootstrap cross-signing for a user once they’re logged, in case it’s not already done yet.
This requires to login with a username and password, or that MSC3967 is enabled on the server, as of 2023-10-20.
backup_download_strategy: BackupDownloadStrategySelect a strategy to download room keys from the backup, by default room keys won’t be downloaded from the backup automatically.
Take a look at the BackupDownloadStrategy enum for more options.
auto_enable_backups: boolAutomatically create a backup version if no backup exists.
Trait Implementations§
Source§impl Clone for EncryptionSettings
impl Clone for EncryptionSettings
Source§fn clone(&self) -> EncryptionSettings
fn clone(&self) -> EncryptionSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncryptionSettings
impl Debug for EncryptionSettings
Source§impl Default for EncryptionSettings
impl Default for EncryptionSettings
Source§fn default() -> EncryptionSettings
fn default() -> EncryptionSettings
Returns the “default value” for a type. Read more
impl Copy for EncryptionSettings
Auto Trait Implementations§
impl Freeze for EncryptionSettings
impl RefUnwindSafe for EncryptionSettings
impl Send for EncryptionSettings
impl Sync for EncryptionSettings
impl Unpin for EncryptionSettings
impl UnwindSafe for EncryptionSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more