2019-05-24 01:25:55 -07:00
|
|
|
use crate::common::*;
|
|
|
|
|
2020-02-14 00:12:49 -08:00
|
|
|
#[derive(Deserialize, Serialize, Debug, PartialEq, Clone)]
|
2020-02-05 16:01:44 -08:00
|
|
|
pub(crate) struct FileInfo {
|
2020-02-14 00:12:49 -08:00
|
|
|
pub(crate) length: Bytes,
|
2020-02-05 16:01:44 -08:00
|
|
|
pub(crate) path: FilePath,
|
2020-02-14 00:12:49 -08:00
|
|
|
#[serde(
|
|
|
|
skip_serializing_if = "Option::is_none",
|
|
|
|
default,
|
|
|
|
with = "unwrap_or_skip"
|
|
|
|
)]
|
|
|
|
pub(crate) md5sum: Option<Md5Digest>,
|
2019-05-24 01:25:55 -07:00
|
|
|
}
|