pub struct ListBucketsRequest { /* private fields */ }Available on crate feature
async and (crate features async or blocking) only.Expand description
Request builder for listing buckets.
Created by BucketsService::list.
§Example
use s3::{Auth, Client};
let client = Client::builder("https://s3.example.com")?
.region("us-east-1")
.auth(Auth::from_env()?)
.build()?;
let buckets = client.buckets().list().send().await?;Implementations§
Source§impl ListBucketsRequest
impl ListBucketsRequest
Sourcepub async fn send(self) -> Result<ListBucketsOutput>
pub async fn send(self) -> Result<ListBucketsOutput>
Sends the request.
Auto Trait Implementations§
impl !RefUnwindSafe for ListBucketsRequest
impl !UnwindSafe for ListBucketsRequest
impl Freeze for ListBucketsRequest
impl Send for ListBucketsRequest
impl Sync for ListBucketsRequest
impl Unpin for ListBucketsRequest
impl UnsafeUnpin for ListBucketsRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more