mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
14 lines
416 B
Rust
14 lines
416 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::common::*;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub struct AnnounceResponse {
|
|
pub action: AnnounceAction,
|
|
pub info_hash: InfoHash,
|
|
/// Client checks if this is null, not clear why
|
|
pub complete: usize,
|
|
pub incomplete: usize,
|
|
#[serde(rename = "interval")]
|
|
pub announce_interval: usize, // Default 2 min probably
|
|
}
|