ListObjectsRequest

Struct ListObjectsRequest 

Source
#[non_exhaustive]
pub struct ListObjectsRequest {
Show 14 fields pub parent: String, pub page_size: i32, pub page_token: String, pub delimiter: String, pub include_trailing_delimiter: bool, pub prefix: String, pub versions: bool, pub read_mask: Option<FieldMask>, pub lexicographic_start: String, pub lexicographic_end: String, pub soft_deleted: bool, pub include_folders_as_prefixes: bool, pub match_glob: String, pub filter: String, /* private fields */
}
Expand description

Request message for ListObjects.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§parent: String

Required. Name of the bucket in which to look for objects.

§page_size: i32

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

§page_token: String

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

§delimiter: String

Optional. If set, returns results in a directory-like mode. items contains only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter has their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.

§include_trailing_delimiter: bool

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

§prefix: String

Optional. Filter results to objects whose names begin with this prefix.

§versions: bool

Optional. If true, lists all versions of an object as distinct results.

§read_mask: Option<FieldMask>

Mask specifying which fields to read from each result. If no mask is specified, defaults to all fields except items.acl and items.owner. * might be used to mean all fields.

§lexicographic_start: String

Optional. Filter results to objects whose names are lexicographically equal to or after lexicographic_start. If lexicographic_end is also set, the objects listed have names between lexicographic_start (inclusive) and lexicographic_end (exclusive).

§lexicographic_end: String

Optional. Filter results to objects whose names are lexicographically before lexicographic_end. If lexicographic_start is also set, the objects listed have names between lexicographic_start (inclusive) and lexicographic_end (exclusive).

§soft_deleted: bool

Optional. If true, only list all soft-deleted versions of the object. Soft delete policy is required to set this option.

§include_folders_as_prefixes: bool

Optional. If true, includes folders and managed folders (besides objects) in the returned prefixes. Requires delimiter to be set to ‘/’.

§match_glob: String

Optional. Filter results to objects and prefixes that match this glob pattern. See List objects using glob for the full syntax.

§filter: String

Optional. An expression used to filter the returned objects by the context field. For the full syntax, see Filter objects by contexts syntax. If a delimiter is set, the returned prefixes are exempt from this filter.

Implementations§

Source§

impl ListObjectsRequest

Source

pub fn new() -> Self

Source

pub fn set_parent<T: Into<String>>(self, v: T) -> Self

Sets the value of parent.

§Example
let x = ListObjectsRequest::new().set_parent("example");
Source

pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self

Sets the value of page_size.

§Example
let x = ListObjectsRequest::new().set_page_size(42);
Source

pub fn set_page_token<T: Into<String>>(self, v: T) -> Self

Sets the value of page_token.

§Example
let x = ListObjectsRequest::new().set_page_token("example");
Source

pub fn set_delimiter<T: Into<String>>(self, v: T) -> Self

Sets the value of delimiter.

§Example
let x = ListObjectsRequest::new().set_delimiter("example");
Source

pub fn set_include_trailing_delimiter<T: Into<bool>>(self, v: T) -> Self

Sets the value of include_trailing_delimiter.

§Example
let x = ListObjectsRequest::new().set_include_trailing_delimiter(true);
Source

pub fn set_prefix<T: Into<String>>(self, v: T) -> Self

Sets the value of prefix.

§Example
let x = ListObjectsRequest::new().set_prefix("example");
Source

pub fn set_versions<T: Into<bool>>(self, v: T) -> Self

Sets the value of versions.

§Example
let x = ListObjectsRequest::new().set_versions(true);
Source

pub fn set_read_mask<T>(self, v: T) -> Self
where T: Into<FieldMask>,

Sets the value of read_mask.

§Example
use wkt::FieldMask;
let x = ListObjectsRequest::new().set_read_mask(FieldMask::default()/* use setters */);
Source

pub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
where T: Into<FieldMask>,

Sets or clears the value of read_mask.

§Example
use wkt::FieldMask;
let x = ListObjectsRequest::new().set_or_clear_read_mask(Some(FieldMask::default()/* use setters */));
let x = ListObjectsRequest::new().set_or_clear_read_mask(None::<FieldMask>);
Source

pub fn set_lexicographic_start<T: Into<String>>(self, v: T) -> Self

Sets the value of lexicographic_start.

§Example
let x = ListObjectsRequest::new().set_lexicographic_start("example");
Source

pub fn set_lexicographic_end<T: Into<String>>(self, v: T) -> Self

Sets the value of lexicographic_end.

§Example
let x = ListObjectsRequest::new().set_lexicographic_end("example");
Source

pub fn set_soft_deleted<T: Into<bool>>(self, v: T) -> Self

Sets the value of soft_deleted.

§Example
let x = ListObjectsRequest::new().set_soft_deleted(true);
Source

pub fn set_include_folders_as_prefixes<T: Into<bool>>(self, v: T) -> Self

Sets the value of include_folders_as_prefixes.

§Example
let x = ListObjectsRequest::new().set_include_folders_as_prefixes(true);
Source

pub fn set_match_glob<T: Into<String>>(self, v: T) -> Self

Sets the value of match_glob.

§Example
let x = ListObjectsRequest::new().set_match_glob("example");
Source

pub fn set_filter<T: Into<String>>(self, v: T) -> Self

Sets the value of filter.

§Example
let x = ListObjectsRequest::new().set_filter("example");

Trait Implementations§

Source§

impl Clone for ListObjectsRequest

Source§

fn clone(&self) -> ListObjectsRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ListObjectsRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ListObjectsRequest

Source§

fn default() -> ListObjectsRequest

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

impl Message for ListObjectsRequest

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for ListObjectsRequest

Source§

fn eq(&self, other: &ListObjectsRequest) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ListObjectsRequest

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,