Struct google_api_proto::google::storage::v1::ListObjectsRequest
source · pub struct ListObjectsRequest {
pub bucket: String,
pub delimiter: String,
pub include_trailing_delimiter: bool,
pub max_results: i32,
pub page_token: String,
pub prefix: String,
pub projection: i32,
pub versions: bool,
pub lexicographic_start: String,
pub lexicographic_end: String,
pub common_request_params: Option<CommonRequestParams>,
}Expand description
Request message for ListObjects.
Fields§
§bucket: StringRequired. Name of the bucket in which to look for objects.
delimiter: StringReturns 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: boolIf true, objects that end in exactly one instance of delimiter
will have their metadata included in items in addition to
prefixes.
max_results: i32Maximum 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: StringA previously-returned page token representing part of the larger set of results to view.
prefix: StringFilter results to objects whose names begin with this prefix.
projection: i32Set of properties to return. Defaults to NO_ACL.
versions: boolIf true, lists all versions of an object as distinct results.
The default is false. For more information, see
Object
Versioning.
lexicographic_start: StringFilter 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: StringFilter 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).
common_request_params: Option<CommonRequestParams>A set of parameters common to all Storage API requests.
Implementations§
source§impl ListObjectsRequest
impl ListObjectsRequest
sourcepub fn projection(&self) -> Projection
pub fn projection(&self) -> Projection
Returns the enum value of projection, or the default if the field is set to an invalid enum value.
sourcepub fn set_projection(&mut self, value: Projection)
pub fn set_projection(&mut self, value: Projection)
Sets projection to the provided enum value.
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§impl Message for ListObjectsRequest
impl Message for ListObjectsRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.source§impl PartialEq for ListObjectsRequest
impl PartialEq for ListObjectsRequest
source§fn eq(&self, other: &ListObjectsRequest) -> bool
fn eq(&self, other: &ListObjectsRequest) -> bool
self and other values to be equal, and is used
by ==.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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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