refactor: move AddTorrentRequest to shared library for type safety
All checks were successful
Build MIPS Binary / build (push) Successful in 4m28s

This commit is contained in:
spinline
2026-02-08 22:43:35 +03:00
parent f2dfa7963e
commit 129a4c7586
4 changed files with 12 additions and 17 deletions

View File

@@ -130,3 +130,9 @@ pub struct SetLabelRequest {
pub hash: String,
pub label: String,
}
#[derive(Debug, Serialize, Deserialize, Clone, ToSchema)]
pub struct AddTorrentRequest {
#[schema(example = "magnet:?xt=urn:btih:...")]
pub uri: String,
}