pub struct KeyboardButtonStyle {
pub bg_primary: bool,
pub bg_danger: bool,
pub bg_success: bool,
pub icon: Option<i64>,
}Expand description
Generated from:
keyboardButtonStyle#4fdd3430 flags:# bg_primary:flags.0?true bg_danger:flags.1?true bg_success:flags.2?true icon:flags.3?long = KeyboardButtonStyleFields§
§bg_primary: bool§bg_danger: bool§bg_success: bool§icon: Option<i64>Trait Implementations§
Source§impl Clone for KeyboardButtonStyle
impl Clone for KeyboardButtonStyle
Source§fn clone(&self) -> KeyboardButtonStyle
fn clone(&self) -> KeyboardButtonStyle
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 KeyboardButtonStyle
impl Debug for KeyboardButtonStyle
Source§impl Deserializable for KeyboardButtonStyle
impl Deserializable for KeyboardButtonStyle
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<KeyboardButtonStyle> for KeyboardButtonStyle
impl From<KeyboardButtonStyle> for KeyboardButtonStyle
Source§fn from(x: KeyboardButtonStyle) -> Self
fn from(x: KeyboardButtonStyle) -> Self
Converts to this type from the input type.
Source§impl Identifiable for KeyboardButtonStyle
impl Identifiable for KeyboardButtonStyle
Source§const CONSTRUCTOR_ID: u32 = 0x4fdd3430
const CONSTRUCTOR_ID: u32 = 0x4fdd3430
The constructor ID as specified in the TL schema.
Source§impl PartialEq for KeyboardButtonStyle
impl PartialEq for KeyboardButtonStyle
Source§impl Serializable for KeyboardButtonStyle
impl Serializable for KeyboardButtonStyle
Source§impl TryFrom<KeyboardButtonStyle> for KeyboardButtonStyle
impl TryFrom<KeyboardButtonStyle> for KeyboardButtonStyle
Source§type Error = KeyboardButtonStyle
type Error = KeyboardButtonStyle
The type returned in the event of a conversion error.
impl StructuralPartialEq for KeyboardButtonStyle
Auto Trait Implementations§
impl Freeze for KeyboardButtonStyle
impl RefUnwindSafe for KeyboardButtonStyle
impl Send for KeyboardButtonStyle
impl Sync for KeyboardButtonStyle
impl Unpin for KeyboardButtonStyle
impl UnsafeUnpin for KeyboardButtonStyle
impl UnwindSafe for KeyboardButtonStyle
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