intermodal/src/file_info.rs
Casey Rodarmor b0f449b6ae
Drop serde_bencode in favor of bendy
For now depend on my branch on Github, until serde support and the value
type land in the main repo.

type: reform
2020-04-07 19:01:05 -07:00

11 lines
300 B
Rust

use crate::common::*;
#[skip_serializing_none]
#[derive(Deserialize, Serialize, Debug, PartialEq)]
pub(crate) struct FileInfo {
pub(crate) length: u64,
pub(crate) path: FilePath,
#[serde(skip_serializing_if = "Option::is_none", default, with = "inner")]
pub(crate) md5sum: Option<String>,
}