mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 02:05:30 +00:00
16 lines
503 B
Rust
16 lines
503 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::common::*;
|
|
|
|
/// If announce request has answer = true, send this to peer with
|
|
/// peer id == "to_peer_id" field
|
|
/// Action field should be 'announce'
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub struct MiddlemanAnswerToPeer {
|
|
pub action: AnnounceAction,
|
|
/// Note: if equal to client peer_id, client ignores answer
|
|
pub peer_id: PeerId,
|
|
pub info_hash: InfoHash,
|
|
pub answer: JsonValue,
|
|
pub offer_id: OfferId,
|
|
}
|