17 lines
290 B
Rust
17 lines
290 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?;
|
|
api.logout().await?;
|
|
|
|
Ok(())
|
|
}
|