docs(indexeddb): document builder functions

This commit is contained in:
Benjamin Kampmann
2022-07-27 11:52:13 +02:00
parent 54c181a9ad
commit eb1dfd9690
@@ -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,
}