Crates.io | vk-keyboard |
lib.rs | vk-keyboard |
version | 0.2.0 |
source | src |
created_at | 2020-05-09 12:53:52.990086 |
updated_at | 2020-05-11 09:16:21.320403 |
description | An easy to use and simple implementation of VK keyboard types in Rust with serde support. |
homepage | |
repository | |
max_upload_size | |
id | 239250 |
size | 16,423 |
An easy to use and simple implementation of VK keyboard types in Rust with serde support.
[dependencies]
vk_keyboard = "*"
Check /examples
directory for more examples.
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")
)
)
);