intermodal/src/file_info.rs

11 lines
300 B
Rust
Raw Normal View History

2019-05-24 10:25:55 +02:00
use crate::common::*;
#[skip_serializing_none]
2019-05-24 10:25:55 +02:00
#[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>,
2019-05-24 10:25:55 +02:00
}