qbittorrent_web_api/qbittorrent-web-api-gen/tests/default_parameters.rs
2022-07-14 11:16:03 +00:00

26 lines
437 B
Rust

mod common;
use anyhow::Result;
use common::*;
use qbittorrent_web_api_gen::QBittorrentApiGen;
#[derive(QBittorrentApiGen)]
struct Api {}
#[tokio::main]
async fn main() -> Result<()> {
let api = Api::login(BASE_URL, USERNAME, PASSWORD).await?;
let _ = api
.log()
.main()
.normal(true)
.info(false)
.warning(true)
.critical(false)
.send()
.await?;
Ok(())
}