pub struct KeyboardButtonRequestManagedBot {
pub request_id: i32,
pub suggested_name: Option<String>,
pub suggested_username: Option<String>,
}Expand description
Defines parameters for requesting the creation of a managed bot.
Bot API 9.6 — available for bots that have enabled managed bot creation in @BotFather.
Fields§
§request_id: i32Signed 32-bit identifier of the request; must be unique within the message.
suggested_name: Option<String>Suggested name for the new bot.
suggested_username: Option<String>Suggested username for the new bot.
Trait Implementations§
Source§impl Clone for KeyboardButtonRequestManagedBot
impl Clone for KeyboardButtonRequestManagedBot
Source§fn clone(&self) -> KeyboardButtonRequestManagedBot
fn clone(&self) -> KeyboardButtonRequestManagedBot
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 Default for KeyboardButtonRequestManagedBot
impl Default for KeyboardButtonRequestManagedBot
Source§fn default() -> KeyboardButtonRequestManagedBot
fn default() -> KeyboardButtonRequestManagedBot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyboardButtonRequestManagedBot
impl<'de> Deserialize<'de> for KeyboardButtonRequestManagedBot
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
Auto Trait Implementations§
impl Freeze for KeyboardButtonRequestManagedBot
impl RefUnwindSafe for KeyboardButtonRequestManagedBot
impl Send for KeyboardButtonRequestManagedBot
impl Sync for KeyboardButtonRequestManagedBot
impl Unpin for KeyboardButtonRequestManagedBot
impl UnsafeUnpin for KeyboardButtonRequestManagedBot
impl UnwindSafe for KeyboardButtonRequestManagedBot
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