Crate remi_s3

Source
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 FeaturesDescriptionEnabled by default?
export-cratesExports all the used AWS crates as a module called awsNo.
unstableTap into unstable features from remi_gridfs and the remi crate.No.
tracingEnables the use of tracing::instrument and emit events for actions by the crate.No.
serdeEnables the use of serde in StorageConfigNo.
logEmits log records for actions by the crateNo.

Modules§

awsexport-crates
Exports the aws_sdk_s3, aws_credential_types, and aws_config crate without specifying the dependencies yourself.

Structs§

StorageConfig
Represents the main configuration struct to configure a StorageService.
StorageService
Represents an implementation of StorageService for 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>.