1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Bindings to the [Edge Storage API](https://docs.bunny.net/reference/storage-api).

mod storage_zone;
mod upload;
pub use storage_zone::StorageZone;
pub use upload::{upload_file_by_path, upload_file_data, Error as UploadError};

/// Errors that may occur while using the Edge Storage API.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Error while using the file upload API.
    #[error(transparent)]
    Upload(#[from] UploadError),
}