vk-keyboard 0.2.0

An easy to use and simple implementation of VK keyboard types in Rust with serde support.
Documentation

An easy to use and simple implementation of VK keyboard types in Rust with serde support.

Install

[dependencies]
vk_keyboard = "*"

Using

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")
            )
        )
    );