‫Struct ListOperations‏ (0.5.0)

הבקשה ל-builder לקריאות [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

מגדירה את כל האפשרויות ומחליפה את כל הערכים הקודמים.

send

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].