Releases: tu6ge/oss-rs
Releases · tu6ge/oss-rs
v0.11.7
v0.11.6
please replace it with QueryKey::new()
v0.11.5
set object_list
field to private in ObjectList
struct, replace with to_vec
method
set buckets
field to private in ListBuckets
struct, replace with to_vec
method
v0.11.4
deprecated a fat lot method of config mod:
Config::try_new
ObjectBase::new
ObjectBase::try_from_bucket
v0.11.3
v0.11.2
v0.11.1
v0.11.0 Support General Object in ObjectList
亮点
- 本次更新为
ObjectList
中的Object
类型做了泛型化处理,开发者可以更灵活的操作 Object - 提升
BucketName
,EndPoint
等类型的安全性 - 对文件操作改为更加灵活的方式,文件路径的传参方式支持更多类型 (f8cf9ea)
Features
- auth: AuthBuilder method 参数签名更改 (b0c5182)
- bucket: 读取列表和详情内部的信息 (c006da4)
- bucket: 更改 BucketList 内部字段类型 (03edbd3)
- bucket: BucketList Add Item generic (0e85c82)
- bucket: remove Option wrapper in ListBuckets (f9e2a3d)
- builder: 更改方法的可见性 (5fe7326)
- config: 增加内部类型 ObjectPathInner (de94aee)
- config: Add ObjectDir type (84a89cd), closes #12
- config: ObjectDir Support + operator (b95faed)
- config: remove repeat method (f740008)
- config: update ObjectDir new method (2d8f842)
- decode: 对导出的 trait 改名 (dc9c20c)
- decode: 减少对自定义类型的限制条件 (2c6e445)
- decode: 减少对自定义类型的限制条件 (8d8a639)
- decode: 减少对自定义类型的限制条件 (4fe2441), closes #12
- decode: 内部 trait 增加默认实现 (7acaec3)
- decode: traits change to decode (a9b3a8d)
- file: 对文件操作改为更加灵活的方式 (f8cf9ea)
- file: 将 blocking 的 File trait 改名为 Files (977db3f)
- file: 将 File trait 改名为 Files,另外新增 File trait (023c320)
- file: remove put_file and more method (5a95a8f)
- lib: remove traits mod name (35c1773)
- macro: add derive with decode (f51865d)
- objcet: change ObjectList prefix type (9f07f34)
- object: add get_next_base method (c77b379)
- object: ObjectList Add Item generic (63d85e2), closes #12
- object: Support CommonPrefix (c3e54c1), closes #9
- sts: STS 秘钥支持更多类型 (f2e1531)
- type: 支持更多的可用区 (8e65f01)
- types: 提升 BucketName EndPoint 等类型的安全性 (895e373)
- types: Support FromStr for more buildin type (e56afe8)
- types: unwrap changed to expect (066813b)
Full Changelog: 0.10.1...0.11.0
v0.10.0 Optimize Performance and Increase Convenience
- auth: remove VERB ,use http::Method (06ed16b)
- bucket: deprecated intranet_endpoint field (68f1fc0)
- builder: Support Response without xml error (cd49a01), closes #7
- client: 添加获取 object 元信息的方法 (4c9d8e3)
- client: deprecated set_bucket_name method (acc281a)
- core: builder_with_header 签名更改 (2104d5c)
- error: changed OssService (7bc42ac)
- error: Enhance OssService (e74deec)
- file: 为 ObjectBase 增加了几个方法 (0e48c21)
- object: 读取和设置 object 信息更改 (57796d3)
- object: head_object example (b8669b2)
- types: 支持 &str 转 Query (597b530)
- types: BucketBase 添加 get_url_resource 方法 (2197750)
- types: Query 添加 IntoIterator (910f565)
- types: Query 支持更多的生成方式 (5634669)
get_object_list
获取文件列表的签名更改,传递参数有了更多方式
[]
查所有[("max-keys".into(), "5".into())]
数组(不可变长度),最大可支持 size 为 8 的数组[("max-keys".into(), "5".into()), ("prefix".into(), "babel".into())]
数组(不可变长度)vec![("max-keys".into(), "5".into())]
Vec(可变长度)vec![("max-keys".into(), 5u8.into())]
数字类型vec![("max-keys".into(), 1000u16.into())]
u16 数字类型QueryKey
: 例子:
use aliyun_oss_client::QueryKey;
[(QueryKey::MaxKeys, 123u16)]
v0.8.0 Add Arc,Rc,Cow ,Improve performance
- Add Arc,Rc,Cow
- remove plugin features, Expand it in the way of rust, this is more rustly.
- more unit test ,this is different from integration testing
- Improve performance, some aspects
- The pub symbol of many fields has been removed in struct
- Support STS with trait type
- start use
cargo fmt
, format all code - remove some clone, not just because Arc, Rc, Cow