Skip to main content

Module client

Module client 

Source
Expand description

§Example

async fn sample(
   document_id: &str,
) -> anyhow::Result<()> {
    let client = DeveloperKnowledge::builder().build().await?;
    let response = client.get_document()
        .set_name(format!("documents/{document_id}"))
        .send().await?;
    println!("response {:?}", response);
    Ok(())
}

Concrete implementations of this client library traits.

Structs§

DeveloperKnowledge
Implements a client for the Developer Knowledge API.