Skip to main content

Module pipeline

Module pipeline 

Source
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ยง

ParsedImport ๐Ÿ”’
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ยง

ImportPayload ๐Ÿ”’
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 vault bitwarden_vault::CipherType discriminant.