pub struct KeyboardButtonSwitchInline {
pub same_peer: bool,
pub style: Option<KeyboardButtonStyle>,
pub text: String,
pub query: String,
pub peer_types: Option<Vec<InlineQueryPeerType>>,
}Expand description
Generated from:
keyboardButtonSwitchInline#991399fc flags:# same_peer:flags.0?true style:flags.10?KeyboardButtonStyle text:string query:string peer_types:flags.1?Vector<InlineQueryPeerType> = KeyboardButtonFields§
§same_peer: bool§style: Option<KeyboardButtonStyle>§text: String§query: String§peer_types: Option<Vec<InlineQueryPeerType>>Trait Implementations§
Source§impl Clone for KeyboardButtonSwitchInline
impl Clone for KeyboardButtonSwitchInline
Source§fn clone(&self) -> KeyboardButtonSwitchInline
fn clone(&self) -> KeyboardButtonSwitchInline
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 KeyboardButtonSwitchInline
impl Debug for KeyboardButtonSwitchInline
Source§impl Deserializable for KeyboardButtonSwitchInline
impl Deserializable for KeyboardButtonSwitchInline
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<KeyboardButtonSwitchInline> for KeyboardButton
impl From<KeyboardButtonSwitchInline> for KeyboardButton
Source§fn from(x: KeyboardButtonSwitchInline) -> Self
fn from(x: KeyboardButtonSwitchInline) -> Self
Converts to this type from the input type.
Source§impl Identifiable for KeyboardButtonSwitchInline
impl Identifiable for KeyboardButtonSwitchInline
Source§const CONSTRUCTOR_ID: u32 = 0x991399fc
const CONSTRUCTOR_ID: u32 = 0x991399fc
The constructor ID as specified in the TL schema.
Source§impl TryFrom<KeyboardButton> for KeyboardButtonSwitchInline
impl TryFrom<KeyboardButton> for KeyboardButtonSwitchInline
Source§type Error = KeyboardButton
type Error = KeyboardButton
The type returned in the event of a conversion error.
impl StructuralPartialEq for KeyboardButtonSwitchInline
Auto Trait Implementations§
impl Freeze for KeyboardButtonSwitchInline
impl RefUnwindSafe for KeyboardButtonSwitchInline
impl Send for KeyboardButtonSwitchInline
impl Sync for KeyboardButtonSwitchInline
impl Unpin for KeyboardButtonSwitchInline
impl UnsafeUnpin for KeyboardButtonSwitchInline
impl UnwindSafe for KeyboardButtonSwitchInline
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