From 4c0a9f3a0b639f040d2e7d6417d92575431193e9 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Sat, 26 Nov 2022 01:04:27 +0800 Subject: [PATCH] feat: Export ObjectLister as public type Signed-off-by: Xuanwo --- src/lib.rs | 1 + src/object/list.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 3fd28e27ba4..3e22cad3a39 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -153,6 +153,7 @@ pub use operator::OperatorMetadata; mod object; pub use object::Object; +pub use object::ObjectLister; pub use object::ObjectMetadata; pub use object::ObjectMode; pub use object::ObjectMultipart; diff --git a/src/object/list.rs b/src/object/list.rs index 87eba399e35..46fa1c5b219 100644 --- a/src/object/list.rs +++ b/src/object/list.rs @@ -27,6 +27,10 @@ use futures::Stream; use crate::raw::*; use crate::*; +/// ObjectLister is returned by `Object::list` to list objects. +/// +/// User can use object lister as `Stream>` or +/// call `next_page` directly. pub struct ObjectLister { acc: Arc, pager: Option,