pub struct NewSessionCreated {
pub first_msg_id: i64,
pub unique_id: i64,
pub server_salt: i64,
}Expand description
Generated from:
new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSessionFields§
§first_msg_id: i64§unique_id: i64§server_salt: i64Trait Implementations§
Source§impl Clone for NewSessionCreated
impl Clone for NewSessionCreated
Source§fn clone(&self) -> NewSessionCreated
fn clone(&self) -> NewSessionCreated
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 NewSessionCreated
impl Debug for NewSessionCreated
Source§impl Deserializable for NewSessionCreated
impl Deserializable for NewSessionCreated
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<NewSessionCreated> for NewSession
impl From<NewSessionCreated> for NewSession
Source§fn from(x: NewSessionCreated) -> Self
fn from(x: NewSessionCreated) -> Self
Converts to this type from the input type.
Source§impl Identifiable for NewSessionCreated
impl Identifiable for NewSessionCreated
Source§const CONSTRUCTOR_ID: u32 = 0x9ec20908
const CONSTRUCTOR_ID: u32 = 0x9ec20908
The constructor ID as specified in the TL schema.
Source§impl PartialEq for NewSessionCreated
impl PartialEq for NewSessionCreated
Source§impl Serializable for NewSessionCreated
impl Serializable for NewSessionCreated
Source§impl TryFrom<NewSession> for NewSessionCreated
impl TryFrom<NewSession> for NewSessionCreated
Source§type Error = NewSession
type Error = NewSession
The type returned in the event of a conversion error.
impl StructuralPartialEq for NewSessionCreated
Auto Trait Implementations§
impl Freeze for NewSessionCreated
impl RefUnwindSafe for NewSessionCreated
impl Send for NewSessionCreated
impl Sync for NewSessionCreated
impl Unpin for NewSessionCreated
impl UnsafeUnpin for NewSessionCreated
impl UnwindSafe for NewSessionCreated
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