pub struct UpdateNewBotConnection {
pub confirmed: bool,
pub bot_id: i64,
pub date: Option<i32>,
pub device: Option<String>,
pub location: Option<String>,
}Expand description
Generated from:
updateNewBotConnection#b22083a6 flags:# confirmed:flags.0?true bot_id:long date:flags.1?int device:flags.1?string location:flags.1?string = UpdateFields§
§confirmed: bool§bot_id: i64§date: Option<i32>§device: Option<String>§location: Option<String>Trait Implementations§
Source§impl Clone for UpdateNewBotConnection
impl Clone for UpdateNewBotConnection
Source§fn clone(&self) -> UpdateNewBotConnection
fn clone(&self) -> UpdateNewBotConnection
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 UpdateNewBotConnection
impl Debug for UpdateNewBotConnection
Source§impl Deserializable for UpdateNewBotConnection
impl Deserializable for UpdateNewBotConnection
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<UpdateNewBotConnection> for Update
impl From<UpdateNewBotConnection> for Update
Source§fn from(x: UpdateNewBotConnection) -> Self
fn from(x: UpdateNewBotConnection) -> Self
Converts to this type from the input type.
Source§impl Identifiable for UpdateNewBotConnection
impl Identifiable for UpdateNewBotConnection
Source§const CONSTRUCTOR_ID: u32 = 0xb22083a6
const CONSTRUCTOR_ID: u32 = 0xb22083a6
The constructor ID as specified in the TL schema.
Source§impl PartialEq for UpdateNewBotConnection
impl PartialEq for UpdateNewBotConnection
Source§fn eq(&self, other: &UpdateNewBotConnection) -> bool
fn eq(&self, other: &UpdateNewBotConnection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateNewBotConnection
Auto Trait Implementations§
impl Freeze for UpdateNewBotConnection
impl RefUnwindSafe for UpdateNewBotConnection
impl Send for UpdateNewBotConnection
impl Sync for UpdateNewBotConnection
impl Unpin for UpdateNewBotConnection
impl UnsafeUnpin for UpdateNewBotConnection
impl UnwindSafe for UpdateNewBotConnection
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