Expand description
§bitwarden-importers
Internal crate implementing format-specific vault importers for the Bitwarden SDK. Do not use directly.
Exposes client.importers() (ImporterClient) with:
import_kdbx— parses a KeePass KDBX (.kdbx) database (3.1 + 4, via thekeepasscrate), encrypts the entries for the user’s personal vault or a given organization, and submits them to the server’s import endpoint. Returns per-type counts.
§Architecture
The shared “interchange” model (ImportingCipher, CipherType, Login/Card/…, and the
From<ImportingCipher> for CipherView bridge plus encrypt_import) lives in bitwarden-exporters
and is reused here — this crate depends on bitwarden-exporters. CXF import remains in
bitwarden-exporters because it is one half of a bidirectional codec.
Modules§
- error 🔒
- import 🔒
- Routing: maps each importer’s public entry to its parser + the generic submit pipeline.
- importer_
client 🔒 - importers 🔒
- Format-specific importer parsers. Each parser turns its file format into a
crate::pipeline::ParsedImport; the generic pipeline encrypts and submits it. - pipeline 🔒
- Generic submit pipeline shared by all SDK importers.
- uniffi_
support 🔒
Structs§
- Cipher
Type Count - Number of imported ciphers of a given type.
- Import
Options - Destination options for a vault import.
- Import
Summary - Counts of what an import submitted to the server, broken down by cipher type so the client can render its per-type result table.
- Import
Target Collection - An existing organization collection to assign an org import to.
- Import
Target Folder - An existing personal folder to nest a personal import under.
- Importer
Client
Enums§
Constants§
- UNIFFI_
META_ 🔒CONST_ BITWARDEN_ IMPORTERS_ RECORD_ CIPHERTYPECOUNT - UNIFFI_
META_ 🔒CONST_ BITWARDEN_ IMPORTERS_ RECORD_ IMPORTOPTIONS - UNIFFI_
META_ 🔒CONST_ BITWARDEN_ IMPORTERS_ RECORD_ IMPORTSUMMARY - UNIFFI_
META_ 🔒CONST_ BITWARDEN_ IMPORTERS_ RECORD_ IMPORTTARGETCOLLECTION - UNIFFI_
META_ 🔒CONST_ BITWARDEN_ IMPORTERS_ RECORD_ IMPORTTARGETFOLDER - UNIFFI_
META_ 🔒CONST_ NAMESPACE_ BITWARDEN_ IMPORTERS - Export namespace metadata.