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