torbox-ddl-rs 0.1.0

Rust SDK DDL for the Torbox API
Documentation
use serde::{Deserialize, Serialize};
use torbox_core_rs::api::ApiResponse;

#[derive(Debug, Serialize)]
#[serde(rename_all = "snake_case")]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub enum WebdownloadControlSource {
    /// the torrent's id, optional if using "all" parameter
    WebdlId(u32),
    /// if you want to do this operation to all torrents in your account, optional if using the "torrent_id" parameter
    All(bool),
}

#[derive(Debug, Serialize)]
#[serde(rename_all = "snake_case")]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub enum WebdownloadOperation {
    Delete,
}

#[derive(Debug, Serialize)]
#[serde(rename_all = "snake_case")]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub enum FormatType {
    Object,
    List,
}