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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SecondaryButtonPosition
Source§impl Debug for SecondaryButtonPosition
impl Debug for SecondaryButtonPosition
impl Eq for SecondaryButtonPosition
Source§impl Hash for SecondaryButtonPosition
impl Hash for SecondaryButtonPosition
Source§impl PartialEq for SecondaryButtonPosition
impl PartialEq for SecondaryButtonPosition
Source§fn eq(&self, other: &SecondaryButtonPosition) -> bool
fn eq(&self, other: &SecondaryButtonPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SecondaryButtonPosition
impl Serialize 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 UnsafeUnpin for SecondaryButtonPosition
impl UnwindSafe for SecondaryButtonPosition
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> HasAllProps<(), T> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.