pub async fn list_prefix<'a>(
        bucket: &'a str,
        prefix: &'a str,
    ) -> Result<impl Stream<Item = Result<Vec<Self>, Error>> + 'a, Error> {
        Self::list_from(bucket, Some(prefix)).await
    }
/// Obtain a list of objects by prefix 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_prefix("my_bucket", "prefix/").await?;
/// # Ok(())
/// # }
/// ```
Obtain a list of objects by prefix within this Bucket .
Obtain a list of objects by prefix within this Bucket .
pub async fn list_prefix<'a>(
        bucket: &'a str,
        prefix: &'a str,
    ) -> Result<impl Stream<Item = Result<Vec<Self>, Error>> + 'a, Error> {
        Self::list_from(bucket, Some(prefix)).await
    }
pub async fn list_prefix < ' a > ( bucket : & ' a str , prefix : & ' a str , ) -> Result < impl Stream < Item = Result < Vec < Self > , Error > > + ' a , Error > { Self :: list_from ( bucket , Some ( prefix ) ) . await }
Obtain a list of objects by prefix within this Bucket .
Obtain a list of objects by prefix within this Bucket .
bucket
&'a str
prefix
&'a str
example
None
#[tokio::main]
None
async fn main() -> result<(), box<dyn std::error::error>> {
use cloud_storage::Object.

let all_objects = Object::list_prefix("my_bucket", "prefix/").await?.
use cloud_storage :: Object . let all_objects = Object :: list_prefix ( " my_bucket " " prefix / " ) . await? .
ok(())
None
}
None