Expand description
§🐻❄️🧶 remi_s3
The remi_s3 crate is an official implementation of the remi::StorageService
trait with Amazon S3 using the official AWS crate aws_sdk_s3.
§Example
// Cargo.toml:
//
// [dependencies]
// remi = "^0"
// remi-s3 = { version = "^0", features = ["export-crates"] }
// tokio = { version = "^1", features = ["full"] }
use remi_s3::{StorageService, StorageConfig, aws::s3};
use remi::{StorageService as _, UploadRequest};
#[tokio::main]
async fn main() {
}§Crate Features
| Crate Features | Description | Enabled by default? |
|---|---|---|
export-crates | Exports all the used AWS crates as a module called aws | No. |
unstable | Tap into unstable features from remi_gridfs and the remi crate. | No. |
tracing | Enables the use of tracing::instrument and emit events for actions by the crate. | No. |
serde | Enables the use of serde in StorageConfig | No. |
log | Emits log records for actions by the crate | No. |
Modules§
- aws
export-crates - Exports the
aws_sdk_s3,aws_credential_types, andaws_configcrate without specifying the dependencies yourself.
Structs§
- Storage
Config - Represents the main configuration struct to configure a
StorageService. - Storage
Service - Represents an implementation of
StorageServicefor Amazon Simple Storage Service.
Enums§
- Error
- Represents a generalised error that inlines all service errors and uses
Response<SdkBody> as the response type.
Type Aliases§
- Result
- Type alias for
std::result::Result<T,Error>.