magnetease 0.1.1

A library to fetch magnets from the internet
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod magnetease;
pub mod providers;

use async_trait::async_trait;
use reqwest::Client;

#[derive(Clone)]
pub struct Magnet {
    pub title: String,
    pub url: String,
    pub seeders: u32,
    pub bytes: u64,
}

#[async_trait]
trait Provider {
    async fn search(&self, client: &Client, query: &str) -> Vec<Magnet>;
}