1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//! <https://vk.com/dev/objects/appWidget?f=3.%20Table>

use super::*;

#[derive(Deserialize, Clone, Debug)]
pub struct Table {
    pub title: String,
    pub title_url: Option<String>,
    pub title_counter: Option<Integer>,
    pub head: Vec<HeadObject>,
    pub body: Vec<Vec<Object>>,
    pub more: Option<String>,
    pub more_url: Option<String>,
}

#[derive(Deserialize, Clone, Debug)]
pub struct HeadObject {
    pub text: String,
    pub align: String,
}

#[derive(Deserialize, Clone, Debug)]
pub struct Object {
    pub text: String,
    pub url: String,
    pub icon_id: Option<String>,
}