Expand description
本包提供腾讯云对象存储(cos)基本接口封装.
基本用法:
use tencent_qcloud_cos_rs::client::Client;
use tencent_qcloud_cos_rs::objects::Objects;
use mime;
#[tokio::main]
async fn main() {
let client = Client::new("foo", "bar", None, "qcloudtest-1256650966", "ap-guangzhou");
/// 上传文件
let res = client.put_object("Cargo.toml", "Cargo.toml", mime::TEXT_PLAIN_UTF_8, None).await;
/// 删除文件
let res = client.delete_object("Cargo.toml").await;
}