diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-11-09 02:08:20 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-11-09 02:08:20 +0100 |
commit | 919796ec954414ae16f113896bdf212381c96437 (patch) | |
tree | cf08d8d2a06224bc22e1039985f3a37022938f2a /src/contentdb.rs | |
parent | 117f760d7cb389ef9bed5a206cf6a510a1225a1b (diff) | |
download | modderbaas-919796ec954414ae16f113896bdf212381c96437.tar.gz modderbaas-919796ec954414ae16f113896bdf212381c96437.tar.bz2 modderbaas-919796ec954414ae16f113896bdf212381c96437.zip |
more documentation
Diffstat (limited to 'src/contentdb.rs')
-rw-r--r-- | src/contentdb.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/contentdb.rs b/src/contentdb.rs index 467f9dc..d9c4688 100644 --- a/src/contentdb.rs +++ b/src/contentdb.rs @@ -20,16 +20,23 @@ static PROVIDES_SELECTOR: Lazy<Selector> = static A_SELECTOR: Lazy<Selector> = Lazy::new(|| Selector::parse("a").expect("Invalid selector")); -/// (Partial) metadata of a content item, as returned by the Content DB. +/// (Partial) metadata of a content item, as returned by the Content DB API. #[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)] pub struct ContentMeta { + /// Username of the author. pub author: String, + /// Name of the package. pub name: String, + /// A list of mods that are provided by this package. pub provides: Vec<String>, + /// The short description of the package. pub short_description: String, + /// The (human-readable) title of this package. pub title: String, + /// The type of the package ("mod", "game", "txp") #[serde(rename = "type")] pub typ: String, + /// The download URL of the package. pub url: Url, } |