pub enum SecondaryButtonPosition {
Top,
Left,
Bottom,
Right,
}
Expand description
Position of the secondary bottom button.
§Examples
use telegram_webapp_sdk::webapp::{SecondaryButtonPosition, TelegramWebApp};
if let Some(app) = TelegramWebApp::instance() {
match app.secondary_button_position() {
Some(SecondaryButtonPosition::Top) => {}
_ => {}
}
}
Variants§
Top
Displayed above the main button.
Left
Displayed to the left of the main button.
Bottom
Displayed below the main button.
Right
Displayed to the right of the main button.
Trait Implementations§
Source§impl Clone for SecondaryButtonPosition
impl Clone for SecondaryButtonPosition
Source§fn clone(&self) -> SecondaryButtonPosition
fn clone(&self) -> SecondaryButtonPosition
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 SecondaryButtonPosition
impl Debug for SecondaryButtonPosition
Source§impl Hash for SecondaryButtonPosition
impl Hash for SecondaryButtonPosition
Source§impl PartialEq for SecondaryButtonPosition
impl PartialEq for SecondaryButtonPosition
Source§impl Serialize for SecondaryButtonPosition
impl Serialize for SecondaryButtonPosition
impl Copy for SecondaryButtonPosition
impl Eq for SecondaryButtonPosition
impl StructuralPartialEq for SecondaryButtonPosition
Auto Trait Implementations§
impl Freeze for SecondaryButtonPosition
impl RefUnwindSafe for SecondaryButtonPosition
impl Send for SecondaryButtonPosition
impl Sync for SecondaryButtonPosition
impl Unpin for SecondaryButtonPosition
impl UnwindSafe for SecondaryButtonPosition
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