pub struct ListObjects { /* private fields */ }Expand description
List information of all files in the bucket
By default, retrieves the first 1000 files
See the Alibaba Cloud documentation for details
Implementations§
Source§impl ListObjects
impl ListObjects
Sourcepub fn set_delimiter(self, delimiter: impl ToString) -> Self
pub fn set_delimiter(self, delimiter: impl ToString) -> Self
Character used to group object names. All object names containing the specified prefix are grouped between the first occurrences of the delimiter (i.e., CommonPrefixes)
Sourcepub fn set_start_after(self, start_after: impl ToString) -> Self
pub fn set_start_after(self, start_after: impl ToString) -> Self
Specify where to start listing objects alphabetically after start-after.
start-after is used for pagination and must be less than 1024 bytes.
When performing conditional queries, even if start-after does not exist, listing starts from the next object in alphabetical order.
Sourcepub fn set_continuation_token(self, continuation_token: impl ToString) -> Self
pub fn set_continuation_token(self, continuation_token: impl ToString) -> Self
Specify the token from which the listing operation should begin.
This token can be obtained from NextContinuationToken in the ListObjects result.
Sourcepub fn set_prefix(self, prefix: impl ToString) -> Self
pub fn set_prefix(self, prefix: impl ToString) -> Self
Restrict the returned object keys to those with the given prefix.
Sourcepub fn set_max_keys(self, max_keys: u32) -> Self
pub fn set_max_keys(self, max_keys: u32) -> Self
Specify the maximum number of files to return.
When a delimiter is set, this counts both files and groups
Default: 1000, range 1-1000; values outside the range use the default
Sourcepub fn fetch_owner(self) -> Self
pub fn fetch_owner(self) -> Self
Specify whether to include owner information in the result.