Crate tencent_qcloud_cos_rs
source ·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;
}
Modules
- 访问控制列表(ACL)
- bucket相关接口
- 接口客户端,所有的操作都基于该对象
- object操作相关
- 请求封装
- 查询bucket列表
- 接口签名