#[repr(u8)]pub enum KeyboardButton {
Show 120 variants
A = 0,
B = 1,
C = 2,
D = 3,
E = 4,
F = 5,
G = 6,
H = 7,
I = 8,
J = 9,
K = 10,
L = 11,
M = 12,
N = 13,
O = 14,
P = 15,
Q = 16,
R = 17,
S = 18,
T = 19,
U = 20,
V = 21,
W = 22,
X = 23,
Y = 24,
Z = 25,
Number0 = 26,
Number1 = 27,
Number2 = 28,
Number3 = 29,
Number4 = 30,
Number5 = 31,
Number6 = 32,
Number7 = 33,
Number8 = 34,
Number9 = 35,
Up = 36,
Down = 37,
Left = 38,
Right = 39,
Tilde = 40,
Grave = 41,
Minus = 42,
Plus = 43,
LeftBracket = 44,
RightBracket = 45,
Semicolon = 46,
Quote = 47,
Comma = 48,
Period = 49,
Slash = 50,
BackSlash = 51,
LeftShift = 52,
RightShift = 53,
LeftControl = 54,
RightControl = 55,
LeftAlt = 56,
RightAlt = 57,
LeftMeta = 58,
RightMeta = 59,
Menu = 60,
Enter = 61,
Escape = 62,
Space = 63,
Tab = 64,
Backspace = 65,
Insert = 66,
Delete = 67,
PageUp = 68,
PageDown = 69,
Home = 70,
End = 71,
CapsLock = 72,
ScrollLock = 73,
PrintScreen = 74,
Pause = 75,
NumLock = 76,
Clear = 77,
Sleep = 78,
Numpad0 = 79,
Numpad1 = 80,
Numpad2 = 81,
Numpad3 = 82,
Numpad4 = 83,
Numpad5 = 84,
Numpad6 = 85,
Numpad7 = 86,
Numpad8 = 87,
Numpad9 = 88,
NumpadDivide = 89,
NumpadMultiply = 90,
NumpadMinus = 91,
NumpadPlus = 92,
NumpadDecimal = 93,
NumpadPeriod = 94,
NumpadEnter = 95,
F1 = 96,
F2 = 97,
F3 = 98,
F4 = 99,
F5 = 100,
F6 = 101,
F7 = 102,
F8 = 103,
F9 = 104,
F10 = 105,
F11 = 106,
F12 = 107,
F13 = 108,
F14 = 109,
F15 = 110,
F16 = 111,
F17 = 112,
F18 = 113,
F19 = 114,
F20 = 115,
F21 = 116,
F22 = 117,
F23 = 118,
F24 = 119,
}Variants§
A = 0
B = 1
C = 2
D = 3
E = 4
F = 5
G = 6
H = 7
I = 8
J = 9
K = 10
L = 11
M = 12
N = 13
O = 14
P = 15
Q = 16
R = 17
S = 18
T = 19
U = 20
V = 21
W = 22
X = 23
Y = 24
Z = 25
Number0 = 26
Number1 = 27
Number2 = 28
Number3 = 29
Number4 = 30
Number5 = 31
Number6 = 32
Number7 = 33
Number8 = 34
Number9 = 35
Up = 36
Down = 37
Left = 38
Right = 39
Tilde = 40
Grave = 41
Minus = 42
Plus = 43
LeftBracket = 44
RightBracket = 45
Semicolon = 46
Quote = 47
Comma = 48
Period = 49
Slash = 50
BackSlash = 51
LeftShift = 52
RightShift = 53
LeftControl = 54
RightControl = 55
LeftAlt = 56
RightAlt = 57
LeftMeta = 58
RightMeta = 59
Menu = 60
Enter = 61
Escape = 62
Space = 63
Tab = 64
Backspace = 65
Insert = 66
Delete = 67
PageUp = 68
PageDown = 69
Home = 70
End = 71
CapsLock = 72
ScrollLock = 73
PrintScreen = 74
Pause = 75
NumLock = 76
Clear = 77
Sleep = 78
Numpad0 = 79
Numpad1 = 80
Numpad2 = 81
Numpad3 = 82
Numpad4 = 83
Numpad5 = 84
Numpad6 = 85
Numpad7 = 86
Numpad8 = 87
Numpad9 = 88
NumpadDivide = 89
NumpadMultiply = 90
NumpadMinus = 91
NumpadPlus = 92
NumpadDecimal = 93
NumpadPeriod = 94
NumpadEnter = 95
F1 = 96
F2 = 97
F3 = 98
F4 = 99
F5 = 100
F6 = 101
F7 = 102
F8 = 103
F9 = 104
F10 = 105
F11 = 106
F12 = 107
F13 = 108
F14 = 109
F15 = 110
F16 = 111
F17 = 112
F18 = 113
F19 = 114
F20 = 115
F21 = 116
F22 = 117
F23 = 118
F24 = 119
Trait Implementations§
Source§impl Clone for KeyboardButton
impl Clone for KeyboardButton
Source§fn clone(&self) -> KeyboardButton
fn clone(&self) -> KeyboardButton
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyboardButton
impl Debug for KeyboardButton
Source§impl<'de> Deserialize<'de> for KeyboardButton
impl<'de> Deserialize<'de> for KeyboardButton
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
Source§impl Into<usize> for KeyboardButton
impl Into<usize> for KeyboardButton
Source§impl Ord for KeyboardButton
impl Ord for KeyboardButton
Source§fn cmp(&self, other: &KeyboardButton) -> Ordering
fn cmp(&self, other: &KeyboardButton) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyboardButton
impl PartialEq for KeyboardButton
Source§impl PartialOrd for KeyboardButton
impl PartialOrd for KeyboardButton
Source§impl Serialize for KeyboardButton
impl Serialize for KeyboardButton
Source§impl TryFrom<u8> for KeyboardButton
impl TryFrom<u8> for KeyboardButton
Source§type Error = TryFromPrimitiveError<KeyboardButton>
type Error = TryFromPrimitiveError<KeyboardButton>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for KeyboardButton
impl TryFromPrimitive for KeyboardButton
const NAME: &'static str = "KeyboardButton"
type Primitive = u8
type Error = TryFromPrimitiveError<KeyboardButton>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for KeyboardButton
impl Eq for KeyboardButton
impl StructuralPartialEq for KeyboardButton
Auto Trait Implementations§
impl Freeze for KeyboardButton
impl RefUnwindSafe for KeyboardButton
impl Send for KeyboardButton
impl Sync for KeyboardButton
impl Unpin for KeyboardButton
impl UnwindSafe for KeyboardButton
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