pub struct ReplyButton {
pub label: String,
pub action: ReplyButtonAction,
pub style: ButtonStyle,
pub icon: Option<ButtonIcon>,
}Fields§
§label: String§action: ReplyButtonAction§style: ButtonStyle§icon: Option<ButtonIcon>Implementations§
Source§impl ReplyButton
impl ReplyButton
pub fn new(label: impl Into<String>, action: ReplyButtonAction) -> Self
pub fn text(label: impl Into<String>) -> Self
pub fn request_users(label: impl Into<String>, request: RequestUsers) -> Self
pub fn request_chat(label: impl Into<String>, request: RequestChat) -> Self
pub fn request_managed_bot( label: impl Into<String>, request: RequestManagedBot, ) -> Self
pub fn request_contact(label: impl Into<String>) -> Self
pub fn request_location(label: impl Into<String>) -> Self
pub fn request_poll(label: impl Into<String>, kind: Option<PollKind>) -> Self
pub fn web_app(label: impl Into<String>, url: impl Into<String>) -> Self
pub fn style(self, style: ButtonStyle) -> Self
pub fn icon(self, icon: ButtonIcon) -> Self
Trait Implementations§
Source§impl Clone for ReplyButton
impl Clone for ReplyButton
Source§fn clone(&self) -> ReplyButton
fn clone(&self) -> ReplyButton
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 moreSource§impl Debug for ReplyButton
impl Debug for ReplyButton
Source§impl PartialEq for ReplyButton
impl PartialEq for ReplyButton
impl StructuralPartialEq for ReplyButton
Auto Trait Implementations§
impl Freeze for ReplyButton
impl RefUnwindSafe for ReplyButton
impl Send for ReplyButton
impl Sync for ReplyButton
impl Unpin for ReplyButton
impl UnsafeUnpin for ReplyButton
impl UnwindSafe for ReplyButton
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