Function rusoto_s3::util::encode_key [−][src]
Expand description
URL encodes an S3 object key. This is necessary for copy_object and upload_part_copy,
which require the copy_source field to be URL encoded.
Examples
use rusoto_s3::CopyObjectRequest;
let request = CopyObjectRequest {
bucket: "my-bucket".to_owned(),
key: "my-key".to_owned(),
copy_source: rusoto_s3::util::encode_key("other-buckét/key-to-cöpy"),
..Default::default()
};