pub struct WireButton {
pub text: String,
pub data: Option<String>,
pub url: Option<String>,
}Expand description
One inline-keyboard button.
Fields§
§text: StringButton label.
data: Option<String>Callback data (mutually exclusive with url).
url: Option<String>Link target (mutually exclusive with data).
Trait Implementations§
Source§impl Clone for WireButton
impl Clone for WireButton
Source§fn clone(&self) -> WireButton
fn clone(&self) -> WireButton
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 WireButton
impl Debug for WireButton
Source§impl<'de> Deserialize<'de> for WireButton
impl<'de> Deserialize<'de> for WireButton
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WireButton
Source§impl PartialEq for WireButton
impl PartialEq for WireButton
Source§impl Serialize for WireButton
impl Serialize for WireButton
impl StructuralPartialEq for WireButton
Auto Trait Implementations§
impl Freeze for WireButton
impl RefUnwindSafe for WireButton
impl Send for WireButton
impl Sync for WireButton
impl Unpin for WireButton
impl UnsafeUnpin for WireButton
impl UnwindSafe for WireButton
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