#[tokio::main] async fn main() -> Result<(), Box> { let influx_url = "http://localhost:8888"; let token = "some-token"; let client = influxdb2::Client::new(influx_url, "org", token); if client.is_onboarding_allowed().await? { println!( "{:?}", client .onboarding("some-user", "some-org", "some-bucket", None, None, None,) .await? ); } println!( "{:?}", client .post_setup_user( "some-new-user", "some-new-org", "some-new-bucket", None, None, None, ) .await? ); Ok(()) }