1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
//! //! # Examples //! //! //!``` //!extern crate env_logger; //! //!use dotenv::dotenv; //! //!use futures_util::TryStreamExt; //!use licoricedev::client::{Lichess}; //! //!#[tokio::main] //!async fn main() -> Result<(), Box<dyn std::error::Error>>{ //! dotenv().ok(); //! env_logger::init(); //! //! let lichess = Lichess::default(); //! //! let query_params = vec![ //! ("max", "10"), //! ]; //! //! let mut stream = lichess //! .export_all_games_json("chesshyperbot", Some(&query_params)) //! .await?; //! //! while let Some(game) = stream.try_next().await? { //! println!("{:?}", game); //! } //! //! Ok(()) //!} //! //!``` // lib pub mod lichessbot;