pub struct ListObjectsV2<'a> { /* private fields */ }Expand description
List all objects in the bucket.
If next_continuation_token is Some the response is truncated, and the
rest of the list can be retrieved by reusing the ListObjectV2 action
but with continuation-token set to the value of next_continuation_token
received in the previous response.
Find out more about ListObjectsV2 from the OSS API Reference
Implementations§
Source§impl<'a> ListObjectsV2<'a>
impl<'a> ListObjectsV2<'a>
pub fn new(bucket: &'a Bucket, credentials: Option<&'a Credentials>) -> Self
Sourcepub fn with_prefix(&mut self, prefix: impl Into<Cow<'a, str>>)
pub fn with_prefix(&mut self, prefix: impl Into<Cow<'a, str>>)
Limits the response to keys that begin with the specified prefix.
See https://help.aliyun.com/zh/oss/developer-reference/listobjectsv2#section-5n7-lx2-piv for more infos.
Sourcepub fn with_start_after(&mut self, start_after: impl Into<Cow<'a, str>>)
pub fn with_start_after(&mut self, start_after: impl Into<Cow<'a, str>>)
StartAfter is where you want Aliyun OSS to start listing from. Aliyun OSS starts listing after this specified key. StartAfter can be any key in the bucket.
See https://help.aliyun.com/zh/oss/developer-reference/listobjectsv2#section-5n7-lx2-piv for more infos.
Sourcepub fn with_continuation_token(
&mut self,
continuation_token: impl Into<Cow<'a, str>>,
)
pub fn with_continuation_token( &mut self, continuation_token: impl Into<Cow<'a, str>>, )
ContinuationToken indicates to Aliyun OSS that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key.
See https://help.aliyun.com/zh/oss/developer-reference/listobjectsv2#section-5n7-lx2-piv for more infos.
Sourcepub fn with_max_keys(&mut self, max_keys: usize)
pub fn with_max_keys(&mut self, max_keys: usize)
Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more.
See https://help.aliyun.com/zh/oss/developer-reference/listobjectsv2#section-5n7-lx2-piv for more infos.
pub fn parse_response(s: &str) -> Result<ListObjectsV2Response, DeError>
Trait Implementations§
Source§impl<'a> Clone for ListObjectsV2<'a>
impl<'a> Clone for ListObjectsV2<'a>
Source§fn clone(&self) -> ListObjectsV2<'a>
fn clone(&self) -> ListObjectsV2<'a>
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for ListObjectsV2<'a>
impl<'a> Debug for ListObjectsV2<'a>
Source§impl<'a> OSSAction<'a> for ListObjectsV2<'a>
impl<'a> OSSAction<'a> for ListObjectsV2<'a>
const METHOD: Method = Method::Get
Source§fn query_mut(&mut self) -> &mut Map<'a>
fn query_mut(&mut self) -> &mut Map<'a>
Source§fn headers_mut(&mut self) -> &mut Map<'a>
fn headers_mut(&mut self) -> &mut Map<'a>
Source§fn sign_with_time(&self, expires_in: Duration, time: &OffsetDateTime) -> Url
fn sign_with_time(&self, expires_in: Duration, time: &OffsetDateTime) -> Url
Auto Trait Implementations§
impl<'a> Freeze for ListObjectsV2<'a>
impl<'a> RefUnwindSafe for ListObjectsV2<'a>
impl<'a> Send for ListObjectsV2<'a>
impl<'a> Sync for ListObjectsV2<'a>
impl<'a> Unpin for ListObjectsV2<'a>
impl<'a> UnwindSafe for ListObjectsV2<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)