#[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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. Name of the bucket in which to look for objects.
page_size: i32Optional. 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: StringOptional. A previously-returned page token representing part of the larger set of results to view.
delimiter: StringOptional. 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: boolOptional. If true, objects that end in exactly one instance of delimiter
has their metadata included in items in addition to
prefixes.
prefix: StringOptional. Filter results to objects whose names begin with this prefix.
versions: boolOptional. 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: StringOptional. 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: StringOptional. 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: boolOptional. If true, only list all soft-deleted versions of the object. Soft delete policy is required to set this option.
include_folders_as_prefixes: boolOptional. If true, includes folders and managed folders (besides objects)
in the returned prefixes. Requires delimiter to be set to ‘/’.
match_glob: StringOptional. Filter results to objects and prefixes that match this glob pattern. See List objects using glob for the full syntax.
filter: StringOptional. 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
impl ListObjectsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Sourcepub fn set_delimiter<T: Into<String>>(self, v: T) -> Self
pub fn set_delimiter<T: Into<String>>(self, v: T) -> Self
Sets the value of delimiter.
Sourcepub fn set_include_trailing_delimiter<T: Into<bool>>(self, v: T) -> Self
pub fn set_include_trailing_delimiter<T: Into<bool>>(self, v: T) -> Self
Sets the value of include_trailing_delimiter.
Sourcepub fn set_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of prefix.
Sourcepub fn set_versions<T: Into<bool>>(self, v: T) -> Self
pub fn set_versions<T: Into<bool>>(self, v: T) -> Self
Sets the value of versions.
Sourcepub fn set_read_mask<T>(self, v: T) -> Self
pub fn set_read_mask<T>(self, v: T) -> Self
Sets the value of read_mask.
Sourcepub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of read_mask.
Sourcepub fn set_lexicographic_start<T: Into<String>>(self, v: T) -> Self
pub fn set_lexicographic_start<T: Into<String>>(self, v: T) -> Self
Sets the value of lexicographic_start.
Sourcepub fn set_lexicographic_end<T: Into<String>>(self, v: T) -> Self
pub fn set_lexicographic_end<T: Into<String>>(self, v: T) -> Self
Sets the value of lexicographic_end.
Sourcepub fn set_soft_deleted<T: Into<bool>>(self, v: T) -> Self
pub fn set_soft_deleted<T: Into<bool>>(self, v: T) -> Self
Sets the value of soft_deleted.
Sourcepub fn set_include_folders_as_prefixes<T: Into<bool>>(self, v: T) -> Self
pub fn set_include_folders_as_prefixes<T: Into<bool>>(self, v: T) -> Self
Sets the value of include_folders_as_prefixes.
Sourcepub fn set_match_glob<T: Into<String>>(self, v: T) -> Self
pub fn set_match_glob<T: Into<String>>(self, v: T) -> Self
Sets the value of match_glob.
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
Trait Implementations§
Source§impl Clone for ListObjectsRequest
impl Clone for ListObjectsRequest
Source§fn clone(&self) -> ListObjectsRequest
fn clone(&self) -> ListObjectsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListObjectsRequest
impl Debug for ListObjectsRequest
Source§impl Default for ListObjectsRequest
impl Default for ListObjectsRequest
Source§fn default() -> ListObjectsRequest
fn default() -> ListObjectsRequest
Source§impl Message for ListObjectsRequest
impl Message for ListObjectsRequest
Source§impl PartialEq for ListObjectsRequest
impl PartialEq for ListObjectsRequest
impl StructuralPartialEq for ListObjectsRequest
Auto Trait Implementations§
impl Freeze for ListObjectsRequest
impl RefUnwindSafe for ListObjectsRequest
impl Send for ListObjectsRequest
impl Sync for ListObjectsRequest
impl Unpin for ListObjectsRequest
impl UnwindSafe for ListObjectsRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request