MCPcopy Create free account
hub / github.com/actix/examples / new

Method new

forms/multipart-s3/src/client.rs:19–24  ·  view source on GitHub ↗

Construct S3 client wrapper.

(config: &AwsConfig)

Source from the content-addressed store, hash-verified

17impl Client {
18 /// Construct S3 client wrapper.
19 pub fn new(config: &AwsConfig) -> Client {
20 Client {
21 s3: S3Client::new(config),
22 bucket_name: env::var("AWS_S3_BUCKET_NAME").unwrap(),
23 }
24 }
25
26 pub fn url(&self, key: &str) -> String {
27 format!(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected