[InstanceAdmin::list_operations][crate::client::InstanceAdmin::list_operations] 呼叫的要求建構工具。
範例
# use google_cloud_spanner_admin_instance_v1::builder;
use builder::instance_admin::ListOperations;
# tokio_test::block_on(async {
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?;
}
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> ListOperations {
# panic!();
// ... details omitted ...
}
實作
with_request
fn with_request<V: Into<longrunning::model::ListOperationsRequest>>(self, v: V) -> Self
設定完整要求,取代任何先前的值。
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
設定所有選項,取代任何先前的值。
傳送
async fn send(self) -> Result<longrunning::model::ListOperationsResponse>
傳送要求。
by_page
fn by_page(self) -> impl gax::paginator::Paginator<longrunning::model::ListOperationsResponse, gax::error::Error>
串流集合中的每個頁面。
by_item
fn by_item(self) -> impl gax::paginator::ItemPaginator<longrunning::model::ListOperationsResponse, gax::error::Error>
串流集合中的每個項目。
set_name
fn set_name<T: Into<std::string::String>>(self, v: T) -> Self
設定 [name][longrunning::model::ListOperationsRequest::name] 的值。
set_filter
fn set_filter<T: Into<std::string::String>>(self, v: T) -> Self
設定 [filter][longrunning::model::ListOperationsRequest::filter] 的值。
set_page_size
fn set_page_size<T: Into<i32>>(self, v: T) -> Self
設定 [page_size][longrunning::model::ListOperationsRequest::page_size] 的值。
set_page_token
fn set_page_token<T: Into<std::string::String>>(self, v: T) -> Self
設定 [page_token][longrunning::model::ListOperationsRequest::page_token] 的值。