df_st_api 0.3.0-development-2

Starting an API server for the DF Storyteller project.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::api_objects::ApiObject;
use df_st_core::item_count::ItemCount;

impl ApiObject for ItemCount {
    fn get_type() -> String {
        "item_count".to_owned()
    }
    fn get_item_link(&self, base_url: &str) -> String {
        base_url.to_string()
    }
    fn get_page_link(base_url: &str) -> String {
        base_url.to_string()
    }
    fn get_count_link(base_url: &str) -> String {
        base_url.to_string()
    }
}