intermodal/src/metainfo.rs

16 lines
401 B
Rust
Raw Normal View History

2019-05-24 10:25:55 +02:00
use crate::common::*;
#[derive(Deserialize, Serialize)]
pub struct Metainfo {
pub announce: String,
#[serde(rename = "announce list")]
pub announce_list: Option<Vec<Vec<String>>>,
2019-05-24 10:25:55 +02:00
pub comment: Option<String>,
#[serde(rename = "created by")]
pub created_by: Option<String>,
#[serde(rename = "creation date")]
pub creation_date: Option<u64>,
pub encoding: String,
pub info: Info,
}