pub struct ListObjects(/* private fields */);Expand description
The request builder for StorageControl::list_objects calls.
§Example
use builder::storage_control::ListObjects;
use gax::paginator::ItemPaginator;
let builder = prepare_request_builder();
let mut items = builder.by_item();
while let Some(result) = items.next().await {
let item = result?;
}
fn prepare_request_builder() -> ListObjects {
// ... details omitted ...
}Implementations§
Source§impl ListObjects
impl ListObjects
Sourcepub fn with_request<V: Into<ListObjectsRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<ListObjectsRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<ListObjectsResponse>
pub async fn send(self) -> Result<ListObjectsResponse>
Sends the request.
Sourcepub fn by_page(self) -> impl Paginator<ListObjectsResponse, Error>
pub fn by_page(self) -> impl Paginator<ListObjectsResponse, Error>
Streams each page in the collection.
Sourcepub fn by_item(self) -> impl ItemPaginator<ListObjectsResponse, Error>
pub fn by_item(self) -> impl ItemPaginator<ListObjectsResponse, Error>
Streams each item in the collection.
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.
This is a required field for requests.
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 ListObjects
impl Clone for ListObjects
Source§fn clone(&self) -> ListObjects
fn clone(&self) -> ListObjects
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ListObjects
impl !RefUnwindSafe for ListObjects
impl Send for ListObjects
impl Sync for ListObjects
impl Unpin for ListObjects
impl !UnwindSafe for ListObjects
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::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.