torrust-index 3.0.0

A BitTorrent Index
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};
use sqlx::FromRow;

#[derive(Debug, Serialize, Deserialize, FromRow)]
pub struct TrackerKey {
    pub key: String,
    pub valid_until: i64,
}

#[derive(Debug, Serialize, Deserialize)]
pub struct Duration {
    pub secs: i64,
    pub nanos: i64,
}