Module completion_service (0.5.0)

类型别名

ClientBuilder

pub type ClientBuilder = gax::client_builder::ClientBuilder<client::Factory, gaxi::options::Credentials>;

[CompletionService][crate::client::CompletionService] 的构建器。

# tokio_test::block_on(async {
# use google_cloud_discoveryengine_v1::*;
# use builder::completion_service::ClientBuilder;
# use client::CompletionService;
let builder : ClientBuilder = CompletionService::builder();
let client = builder
    .with_endpoint("https://discoveryengine.googleapis.com")
    .build().await?;
# gax::client_builder::Result::<()>::Ok(()) });