intermodal/src/info.rs
Casey Rodarmor 99a069a021
Add imdl torrent show
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
2020-04-07 19:01:02 -07:00

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,
}