Skip to main content

Module client

Module client 

Source
Expand description

§Example

async fn sample(
   user_id: &str,
   environment_id: &str,
) -> anyhow::Result<()> {
    let client = CloudShellService::builder().build().await?;
    let response = client.get_environment()
        .set_name(format!("users/{user_id}/environments/{environment_id}"))
        .send().await?;
    println!("response {:?}", response);
    Ok(())
}

Concrete implementations of this client library traits.

Structs§

CloudShellService
Implements a client for the Cloud Shell API.