pub struct Button<T> { /* private fields */ }
Implementations§
Source§impl<T> Button<T>
impl<T> Button<T>
pub fn new(action: KeyboardAction<T>, color: Option<KeyboardColor>) -> Self
pub fn text(label: &str, payload: T, color: KeyboardColor) -> Self
pub fn open_link(link: &str, label: &str, payload: T) -> Self
pub fn location(payload: T) -> Self
pub fn vkpay(payload: T, hash: &str) -> Self
pub fn open_app( app_id: u32, owner_id: u32, payload: T, label: &str, hash: &str, ) -> Self
pub fn callback(label: &str, payload: T, color: KeyboardColor) -> Self
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Button<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Button<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for Button<T>where
T: Freeze,
impl<T> RefUnwindSafe for Button<T>where
T: RefUnwindSafe,
impl<T> Send for Button<T>where
T: Send,
impl<T> Sync for Button<T>where
T: Sync,
impl<T> Unpin for Button<T>where
T: Unpin,
impl<T> UnwindSafe for Button<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more