pub async fn list(
        bucket: &str,
    ) -> Result<impl Stream<Item = Result<Vec<Self>, Error>> + '_, Error> {
        Self::list_from(bucket, None).await
    }
/// Obtain a list of objects within this Bucket.
/// ### Example
/// ```no_run
/// # #[tokio::main]
/// # async fn main() -> Result<(), Box<dyn std::error::Error>> {
/// use cloud_storage::Object;
///
/// let all_objects = Object::list("my_bucket").await?;
/// # Ok(())
/// # }
/// ```
Obtain a list of objects within this Bucket.
Obtain a list of objects within this Bucket .
pub async fn list(
        bucket: &str,
    ) -> Result<impl Stream<Item = Result<Vec<Self>, Error>> + '_, Error> {
        Self::list_from(bucket, None).await
    }
pub async fn list ( bucket : & str , ) -> Result < impl Stream < Item = Result < Vec < Self > , Error > > + ' _ , Error > { Self :: list_from ( bucket , None ) . await }
Obtain a list of objects within this Bucket.
Obtain a list of objects within this Bucket .
bucket
&str
example
None
#[tokio::main]
None
async fn main() -> result<(), box<dyn std::error::error>> {
use cloud_storage::Object.

let all_objects = Object::list("my_bucket").await?.
use cloud_storage :: Object . let all_objects = Object :: list ( " my_bucket " ) . await? .
ok(())
None
}
None