pub struct KeyboardButton<'src> {
pub text: Cow<'src, str>,
}Expand description
Fields§
§text: Cow<'src, str>Trait Implementations§
Source§impl<'src> Clone for KeyboardButton<'src>
impl<'src> Clone for KeyboardButton<'src>
Source§fn clone(&self) -> KeyboardButton<'src>
fn clone(&self) -> KeyboardButton<'src>
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<'src> Debug for KeyboardButton<'src>
impl<'src> Debug for KeyboardButton<'src>
Source§impl<'de, 'src> Deserialize<'de> for KeyboardButton<'src>
impl<'de, 'src> Deserialize<'de> for KeyboardButton<'src>
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
Source§impl<'src> PartialEq for KeyboardButton<'src>
impl<'src> PartialEq for KeyboardButton<'src>
Source§impl<'src> Serialize for KeyboardButton<'src>
impl<'src> Serialize for KeyboardButton<'src>
impl<'src> Eq for KeyboardButton<'src>
impl<'src> StructuralPartialEq for KeyboardButton<'src>
Auto Trait Implementations§
impl<'src> Freeze for KeyboardButton<'src>
impl<'src> RefUnwindSafe for KeyboardButton<'src>
impl<'src> Send for KeyboardButton<'src>
impl<'src> Sync for KeyboardButton<'src>
impl<'src> Unpin for KeyboardButton<'src>
impl<'src> UnwindSafe for KeyboardButton<'src>
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