The `imdl torrent show` command displays information about on-disk torrent files. The formatting of the command's output is copied from torf, an excellent command-line torrent creator, editor, and viewer. type: added
14 lines
279 B
Rust
14 lines
279 B
Rust
use crate::common::*;
|
|
|
|
#[derive(Deserialize, Serialize)]
|
|
pub struct Info {
|
|
pub private: Option<u8>,
|
|
#[serde(rename = "piece length")]
|
|
pub piece_length: u32,
|
|
pub name: String,
|
|
#[serde(with = "serde_bytes")]
|
|
pub pieces: Vec<u8>,
|
|
#[serde(flatten)]
|
|
pub mode: Mode,
|
|
}
|