From eb1dfd96907b263756c75feac4aad7a6c21ec69a Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Wed, 27 Jul 2022 11:52:13 +0200 Subject: [PATCH] docs(indexeddb): document builder functions --- crates/matrix-sdk-indexeddb/src/state_store.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/matrix-sdk-indexeddb/src/state_store.rs b/crates/matrix-sdk-indexeddb/src/state_store.rs index eba532751..0508fa391 100644 --- a/crates/matrix-sdk-indexeddb/src/state_store.rs +++ b/crates/matrix-sdk-indexeddb/src/state_store.rs @@ -272,8 +272,11 @@ async fn backup(source: &IdbDatabase, meta: &IdbDatabase) -> Result<()> { #[derive(Builder, Debug, PartialEq)] #[builder(name = "IndexeddbStoreBuilder", build_fn(skip))] pub struct IndexeddbStoreBuilderConfig { + /// The name for the indexeddb store to use, `state` is none given name: String, + /// The password the indexeddb should be encrypted with. If not given, the DB is not encrypted passphrase: String, + /// The strategy to use when a merge conflict is found, see [`MigrationConflictStrategy`] for details #[builder(default = "MigrationConflictStrategy::BackupAndDrop")] migration_conflict_strategy: MigrationConflictStrategy, }