From 981c82a51b8dcf90f9172ea1072306f7867e0316 Mon Sep 17 00:00:00 2001 From: tu6ge Date: Wed, 29 May 2024 10:38:41 +0800 Subject: [PATCH] doc --- README.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36593f4..8046b0e 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,17 @@ struct Client { } impl Client { - async fn get_buckets(&self, endpoint: EndPoint) -> Vec { + async fn get_buckets(&self, endpoint: EndPoint) -> Vec { todo!() - } + } + + // 导出到自定义的类型 + pub async fn export_buckets( + &self, + endpoint: &EndPoint, + ) -> Result, OssError> { + //... + } } ``` @@ -32,9 +40,24 @@ impl Bucket{ async fn get_info(&self, client: &Client) -> BucketInfo { todo!() } + + // 导出到自定义的类型 + pub async fn export_info(&self, client: &Client) -> Result { + //... + } + async fn get_object(&self, client: &Client) -> Vec { todo!() } + + // 导出到自定义的类型 + pub async fn export_objects( + &self, + query: &ObjectQuery, + client: &Client, + ) -> Result<(Vec, NextContinuationToken), OssError> { + //... + } } ``` get object info