vk-keyboard

Crates.iovk-keyboard
lib.rsvk-keyboard
version0.2.0
sourcesrc
created_at2020-05-09 12:53:52.990086
updated_at2020-05-11 09:16:21.320403
descriptionAn easy to use and simple implementation of VK keyboard types in Rust with serde support.
homepage
repository
max_upload_size
id239250
size16,423
prostomarkeloff (prostomarkeloff)

documentation

README

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")
            )
        )
    );
Commit count: 0

cargo fmt