Struct CreateConnection (0.5.0)

O builder de solicitações para chamadas [DlpService::create_connection][crate::client::DlpService::create_connection].

Exemplo

# 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 ...
}

Implementações

with_request

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

Define a solicitação completa, substituindo todos os valores anteriores.

with_options

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

Define todas as opções, substituindo os valores anteriores.

enviar

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

Envia a solicitação.

set_parent

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

Define o valor de [parent][crate::model::CreateConnectionRequest::parent].

Este é um campo obrigatório para solicitações.

set_connection

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

Define o valor de [connection][crate::model::CreateConnectionRequest::connection].

Este é um campo obrigatório para solicitações.

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>,

Define ou limpa o valor de [connection][crate::model::CreateConnectionRequest::connection].

Este é um campo obrigatório para solicitações.