Skip to main content

Module client

Module client 

Source
Expand description

§Example

async fn sample(
) -> anyhow::Result<()> {
    let client = LanguageService::builder().build().await?;
    let response = client.analyze_sentiment()
        /* set fields */
        .send().await?;
    println!("response {:?}", response);
    Ok(())
}

Concrete implementations of this client library traits.

Structs§

LanguageService
Implements a client for the Cloud Natural Language API.