rusty-lcu 0.1.0

Generated Rust client helpers for the League Client Update API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rusty_lcu::{EndpointParams, LcuClient, generated};

#[tokio::main]
async fn main() -> rusty_lcu::Result<()> {
    let mut client = LcuClient::new()?;
    client.connect().await?;

    let summoner =
        generated::get_lol_summoner_v1_current_summoner_typed(&client, EndpointParams::new())
            .await?;

    println!(
        "{}#{} is level {}",
        summoner.game_name, summoner.tag_line, summoner.summoner_level
    );

    Ok(())
}