// use kakao_rs::{Button, CallButton, LinkButton, MsgButton, ShareButton}; use kakao_rs::prelude::*; #[test] fn button_de_serialize_test() { // let a = Button::new(ButtonType::Call) // .set_label("전화하기") // .set_number("911"); // let b = Button::new(ButtonType::Share).set_label("공유하기"); // let c = Button::new(ButtonType::Link) // .set_label("링크열기") // .set_link("https://"); // let d = Button::new(ButtonType::Text) // .set_label("그냥 버튼") // .set_msg("발화문임"); let data = r#"[{"label":"CALL LABEL","action":"phone","phoneNumber":"0","messageText":"MESSAGE"},{"label":"SHARE LABEL","action":"share"},{"label":"MSG LABEL","action":"message"},{"label":"LABEL","action":"webLink","webLinkUrl":"https://"}]"#; let buttons: Vec