pub struct UpdateBotCommands {
pub peer: Peer,
pub bot_id: i64,
pub commands: Vec<BotCommand>,
}Expand description
Generated from:
updateBotCommands#4d712f2e peer:Peer bot_id:long commands:Vector<BotCommand> = UpdateFields§
§peer: Peer§bot_id: i64§commands: Vec<BotCommand>Trait Implementations§
Source§impl Clone for UpdateBotCommands
impl Clone for UpdateBotCommands
Source§fn clone(&self) -> UpdateBotCommands
fn clone(&self) -> UpdateBotCommands
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 Debug for UpdateBotCommands
impl Debug for UpdateBotCommands
Source§impl Deserializable for UpdateBotCommands
impl Deserializable for UpdateBotCommands
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<UpdateBotCommands> for Update
impl From<UpdateBotCommands> for Update
Source§fn from(x: UpdateBotCommands) -> Self
fn from(x: UpdateBotCommands) -> Self
Converts to this type from the input type.
Source§impl Identifiable for UpdateBotCommands
impl Identifiable for UpdateBotCommands
Source§const CONSTRUCTOR_ID: u32 = 0x4d712f2e
const CONSTRUCTOR_ID: u32 = 0x4d712f2e
The constructor ID as specified in the TL schema.
Source§impl PartialEq for UpdateBotCommands
impl PartialEq for UpdateBotCommands
Source§impl Serializable for UpdateBotCommands
impl Serializable for UpdateBotCommands
Source§impl TryFrom<Update> for UpdateBotCommands
impl TryFrom<Update> for UpdateBotCommands
impl StructuralPartialEq for UpdateBotCommands
Auto Trait Implementations§
impl Freeze for UpdateBotCommands
impl RefUnwindSafe for UpdateBotCommands
impl Send for UpdateBotCommands
impl Sync for UpdateBotCommands
impl Unpin for UpdateBotCommands
impl UnsafeUnpin for UpdateBotCommands
impl UnwindSafe for UpdateBotCommands
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