Skip to main content

Module client

Module client 

Source
Expand description

§Example

async fn sample(
   provider_id: &str,
   trip_id: &str,
) -> anyhow::Result<()> {
    let client = TripService::builder().build().await?;
    let response = client.get_trip()
        .set_name(format!("providers/{provider_id}/trips/{trip_id}"))
        .send().await?;
    println!("response {:?}", response);
    Ok(())
}

Concrete implementations of this client library traits.

Structs§

TripService
Implements a client for the Local Rides and Deliveries API.
VehicleService
Implements a client for the Local Rides and Deliveries API.