Skip to main content

ListOptional

Struct ListOptional 

Source
pub struct ListOptional<'a> {
    pub standard_params: StandardQueryParameters<'a>,
    pub delimiter: Option<&'a str>,
    pub include_trailing_delimiter: bool,
    pub max_results: Option<u32>,
    pub page_token: Option<&'a str>,
    pub prefix: Option<&'a str>,
    pub projection: Option<Projection>,
    pub user_project: Option<&'a str>,
    pub versions: bool,
}

Fields§

§standard_params: StandardQueryParameters<'a>§delimiter: Option<&'a str>

Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.

§include_trailing_delimiter: bool

If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.

§max_results: Option<u32>

Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.

§page_token: Option<&'a str>

A previously-returned page token representing part of the larger set of results to view.

The pageToken is an encoded field that marks the name and generation of the last object in the returned list. In a subsequent request using the pageToken, items that come after the pageToken are shown (up to maxResults).

If you start a listing and then create an object in the bucket before using a pageToken to continue listing, you will not see the new object in subsequent listing results if it is in part of the object namespace already listed.

§prefix: Option<&'a str>

Filter results to objects whose names begin with this prefix.

§projection: Option<Projection>§user_project: Option<&'a str>

The project to be billed for this request. Required for Requester Pays buckets.

§versions: bool

If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning.

Trait Implementations§

Source§

impl<'a> Default for ListOptional<'a>

Source§

fn default() -> ListOptional<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> Serialize for ListOptional<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for ListOptional<'a>

§

impl<'a> RefUnwindSafe for ListOptional<'a>

§

impl<'a> Send for ListOptional<'a>

§

impl<'a> Sync for ListOptional<'a>

§

impl<'a> Unpin for ListOptional<'a>

§

impl<'a> UnsafeUnpin for ListOptional<'a>

§

impl<'a> UnwindSafe for ListOptional<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.