Skip to main content

Module create_file_send

Module create_file_send 

Source

Structsยง

CreateFileSendResponse
View returned after creating a file send.

Enumsยง

CreateFileSendError
FileUploadType
Where the client should upload the encrypted file bytes after SendClient::create_file_send.
RenewFileUploadUrlError
UploadSendFileError

Constantsยง

UNIFFI_META_CONST_BITWARDEN_SEND_ENUM_FILEUPLOADTYPE ๐Ÿ”’
UNIFFI_META_CONST_BITWARDEN_SEND_ERROR_CREATEFILESENDERROR ๐Ÿ”’
UNIFFI_META_CONST_BITWARDEN_SEND_ERROR_RENEWFILEUPLOADURLERROR ๐Ÿ”’
UNIFFI_META_CONST_BITWARDEN_SEND_ERROR_UPLOADSENDFILEERROR ๐Ÿ”’

Functionsยง

encrypt_file_buffer_with_send_key ๐Ÿ”’
Encrypt buffer under the send key wrapped in wrapped_send_key (the key field of a [bitwarden_api_api::models::SendRequestModel], which is the send key encrypted under the user key). Mirrors SendClient::encrypt_buffer, but sources the key from the just-built create request instead of a round-tripped Send, so the create request can carry the true ciphertext length before the send exists on the server.