fix(properties): harden torrent diagnostics lifecycle

This commit is contained in:
NimBold
2026-08-04 18:09:07 +03:30
parent 2ab292dd5d
commit c86eb1838c
13 changed files with 176 additions and 56 deletions
+9
View File
@@ -296,6 +296,15 @@ pub struct DownloadItem {
#[serde(rename_all = "camelCase")]
#[ts(export, export_to = "../../src/bindings/")]
pub struct TorrentPeer {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub ip: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub port: Option<u16>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub peer_id: Option<String>,
#[ts(type = "number")]
pub download_speed: u64,
#[ts(type = "number")]