Skip to main content

Module create

Module create 

Source

StructsΒ§

CreateAttachmentRequest
Metadata for opening a new attachment slot on the server.
CreatedAttachment
Server data for a newly created attachment slot. The caller uploads the encrypted bytes to Self::upload_url using Self::file_upload_type

EnumsΒ§

AttachmentFileUploadType
Where attachment bytes should be uploaded.
CipherCreateAttachmentError

ConstantsΒ§

UNIFFI_META_CONST_BITWARDEN_VAULT_ENUM_ATTACHMENTFILEUPLOADTYPE πŸ”’
UNIFFI_META_CONST_BITWARDEN_VAULT_ERROR_CIPHERCREATEATTACHMENTERROR πŸ”’
UNIFFI_META_CONST_BITWARDEN_VAULT_RECORD_CREATEATTACHMENTREQUEST πŸ”’
UNIFFI_META_CONST_BITWARDEN_VAULT_RECORD_CREATEDATTACHMENT πŸ”’

TraitsΒ§

CreateAttachmentFailure πŸ”’
Failures shared by the user and admin create flows. Each scope implements this for its own error type, so the admin error doesn’t carry repository variants it can never produce.

FunctionsΒ§

create_attachment πŸ”’
Opens an attachment slot, then hands the server response to into_cipher to produce the returned cipher. If anything after slot creation fails, the slot is deleted best-effort through the endpoint matching as_admin.
finalize_create πŸ”’