rust_qcos/lib.rs
1/*!
2本包提供腾讯云对象存储(cos)基本接口封装.
3
4基本用法:
5
6```
7 use rust_qcos::client::Client;
8 use rust_qcos::objects::Objects;
9 use mime;
10
11 #[tokio::main]
12 async fn main() {
13 let client = Client::new("foo", "bar", "qcloudtest-1256650966", "ap-guangzhou");
14 /// 上传文件
15 let data = std::fs::read("Cargo.toml").unwrap();
16 let res = client.put_object(mime::TEXT_PLAIN_UTF_8, "Cargo.toml", data, None).await;
17 /// 删除文件
18 let res = client.delete_object("Cargo.toml").await;
19 }
20```
21*/
22
23pub mod acl;
24pub mod bucket;
25pub mod client;
26pub mod objects;
27pub mod request;
28pub mod service;
29pub mod signer;