Struct CreateConnection (0.5.0)

[DlpService::create_connection][crate::client::DlpService::create_connection] 呼叫的要求建構工具。

範例

# use google_cloud_privacy_dlp_v2::builder;
use builder::dlp_service::CreateConnection;
# tokio_test::block_on(async {

let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });

fn prepare_request_builder() -> CreateConnection {
  # panic!();
  // ... details omitted ...
}

實作

with_request

 fn with_request<V: Into<crate::model::CreateConnectionRequest>>(self, v: V) -> Self

設定完整要求,取代任何先前的值。

with_options

 fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self

設定所有選項,取代任何先前的值。

傳送

async fn send(self) -> Result<crate::model::Connection>

傳送要求。

set_parent

 fn set_parent<T: Into<std::string::String>>(self, v: T) -> Self

設定 [parent][crate::model::CreateConnectionRequest::parent] 的值。

這是要求的必填欄位。

set_connection

 fn set_connection<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::Connection>,

設定 [connection][crate::model::CreateConnectionRequest::connection] 的值。

這是要求的必填欄位。

set_or_clear_connection

 fn set_or_clear_connection<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::Connection>,

設定或清除 [connection][crate::model::CreateConnectionRequest::connection] 的值。

這是要求的必填欄位。