use serde_json::to_string_pretty; use vk_keyboard::button::{Button, ButtonAction, ButtonColor}; use vk_keyboard::keyboard::Keyboard; use vk_keyboard::{buttons, keyboard, lines, payload, text_button}; fn main() { let kb: Keyboard = keyboard!( true, lines!( buttons!( text_button!( ButtonColor::Positive, "Hello world!", payload!("payload" => "of the button") ), text_button!("Hello second") ), buttons!( text_button!("Hello world on the second line"), text_button!("second hello world on the second line") ) ) ); println!("{}", to_string_pretty(&kb).unwrap()); }