wiki 0.0.3

Library for interacting with MediaWiki APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::Deserialize;

#[derive(Deserialize)]
pub struct QueryResponse<PageExt> {
    pub pages: Option<Vec<PageResponse<PageExt>>>,
}

#[derive(Deserialize)]
pub struct PageResponse<Ext> {
    #[serde(rename = "pageid")]
    pub page_id: u64,
    pub ns: i64,
    pub title: String,
    #[serde(flatten)]
    pub ext: Ext,
}