pub struct ListBucketsRequest { /* private fields */ }Available on (crate features
async or blocking) and crate feature async 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 Freeze for ListBucketsRequest
impl !RefUnwindSafe for ListBucketsRequest
impl Send for ListBucketsRequest
impl Sync for ListBucketsRequest
impl Unpin for ListBucketsRequest
impl UnsafeUnpin for ListBucketsRequest
impl !UnwindSafe 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