1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use super::*;

/// <https://vk.com/dev/link_button>
#[derive(Deserialize, Clone, Debug)]
pub struct Button {
    pub title: String,
    pub action: ButtonAction,
}

#[derive(Deserialize, Clone, Debug)]
pub struct ButtonAction {
    #[serde(rename = "type")]
    pub type_: String,

    pub url: String, // Make Option<String> if multiple types will be added
}