pub struct ListBucketResult {
    pub name: String,
    pub delimiter: Option<String>,
    pub max_keys: Option<i32>,
    pub prefix: Option<String>,
    pub continuation_token: Option<String>,
    pub encoding_type: Option<String>,
    pub is_truncated: bool,
    pub next_continuation_token: Option<String>,
    pub contents: Vec<Object>,
    pub common_prefixes: Option<Vec<CommonPrefix>>,
}
Expand description

The parsed result of a s3 bucket listing

This accepts the ListBucketResult format returned for both ListObjects and ListObjectsV2

Fields

name: String

Name of the bucket.

delimiter: Option<String>

A delimiter is a character you use to group keys.

max_keys: Option<i32>

Sets the maximum number of keys returned in the response body.

prefix: Option<String>

Limits the response to keys that begin with the specified prefix.

continuation_token: Option<String>

Indicates where in the bucket listing begins. It is included in the response if it was sent with the request.

encoding_type: Option<String>

Specifies the encoding method to used

is_truncated: bool

Specifies whether (true) or not (false) all of the results were returned. If the number of results exceeds that specified by MaxKeys, all of the results might not be returned. When the response is truncated (that is, the IsTruncated element value in the response is true), you can use the key name in in ‘next_continuation_token’ as a marker in the subsequent request to get next set of objects. Amazon S3 lists objects in UTF-8 character encoding in lexicographical order.

next_continuation_token: Option<String>contents: Vec<Object>

Metadata about each object returned.

common_prefixes: Option<Vec<CommonPrefix>>

All of the keys rolled up into a common prefix count as a single return when calculating the number of returns.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more