From c27f56f95856b61b37ca19c26117338d4be1e28f Mon Sep 17 00:00:00 2001 From: sd Date: Wed, 17 Apr 2024 11:55:47 +0200 Subject: [PATCH] improved docs.rs --- src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ea7a70e..2e8b94c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,9 +7,15 @@ use base64::engine::general_purpose; use base64::Engine; use std::env; -pub use crate::bucket::{Bucket, BucketOptions}; +/// S3 Bucket operations, your main entrypoint +pub use crate::bucket::{Bucket}; +/// Custom options for bucket connections +pub use crate::bucket::{BucketOptions}; +/// S3 Credentials pub use crate::credentials::{AccessKeyId, AccessKeySecret, Credentials}; +/// Specialized S3 Error type which wraps errors from different sources pub use crate::error::S3Error; +/// Specialized Response objects pub use crate::types::{HeadObjectResult, Object, PutStreamResponse}; pub use reqwest::Response as S3Response; pub use reqwest::StatusCode as S3StatusCode; @@ -22,6 +28,7 @@ mod error; mod signature; mod types; +/// S3 Region Wrapper #[derive(Debug, Clone)] pub struct Region(String);