Expand description
Generic submit pipeline shared by all SDK importers.
A format-specific parser (see crate::importers) produces a ParsedImport; this module
encrypts it for the destination, builds the API request, submits it, and reports the counts.
Nothing here is format-specific.
Structsยง
- Parsed
Import ๐ - Format-agnostic parse result: the ciphers, the folder paths, and which cipher belongs to which folder (by index). Every importer parser produces this for the pipeline to submit.
Enumsยง
- Import
Payload ๐ - The encrypted request model and counts for an import, ready to submit.
Functionsยง
- build_
personal_ ๐folders - Builds the folder views to import. When a target folder is given it becomes folder 0 and the
imported groups are nested beneath it as
"{target}/{group}". - count_
by_ ๐type - Counts ciphers by vault type, in a stable display order, omitting types with no entries.
- filter_
restricted ๐ - Drops ciphers whose type is restricted and re-indexes the folder relationships.
- nest_
relationships_ ๐under_ target - Shifts existing relationships to account for the target folder at index 0 and assigns any folder-less cipher to it.
- submit_
import ๐ - Encrypts a parsed import for the destination (personal vault or organization), submits it to the import endpoint, and returns the per-type counts.
- to_kvp ๐
- vault_
cipher_ ๐type - Maps an exporter [
CipherType] to the vaultbitwarden_vault::CipherTypediscriminant.