Crate yab2

Source
Expand description

§Yet Another Backblaze B2 Client

Opinionated Backblaze B2 Client.

§Features

  • Simple API making use of Rust’s ownership for API constraints
  • Automatic re-authentication and refreshing of Upload URLs

§Cargo Features

  • fs (enables optimized routine for uploading from filesystem)
  • pool (enabled non-large UploadURL object pool for reuse)
  • reqwest_compression (enables deflate/gzip features on reqwest)
  • large_buffers (enables large buffer support, 64KiB instead of 8KiB)

Re-exports§

pub use error::B2Error;

Modules§

builders
Autogenerated builders for various types.
error
Error Handling types for the B2 API.
models
Models for the B2 API.
pool
A Pool of UploadUrls that can be used to upload files in parallel, reusing the same URLs, and reducing the number of requests to the B2 API.
sse
Server-Side Encryption (SSE) types and utilities

Structs§

Client
A client for interacting with the B2 API
ClientBuilder
A builder for creating a Client
DownloadedFile
Wrapper around a response and the file’s parsed headers.
FileRetention
New file retention settings to apply to a file.
LargeFileUpload
A large file that is being uploaded in parts.
ListFiles
Parameters for listing files in a bucket.
NewFileFromPath
Information for a new file to be uploaded.
NewFileInfo
Info about a new whole file to be uploaded.
NewLargeFileInfo
Info about a new large file to be uploaded.
NewPartInfo
Info about a new part of a large file to be uploaded.
UploadPartUrl
Temporarily acquired URL for uploading parts of a large file.
UploadUrl
Temporarily acquired URL for uploading single files.

Enums§

DownloadFileBy
Identifier for a file to download, either by its file ID or file name.