pub struct SentCode {
pub type: SentCodeType,
pub phone_code_hash: String,
pub next_type: Option<CodeType>,
pub timeout: Option<i32>,
}Expand description
Generated from:
auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCodeFields§
§type: SentCodeType§phone_code_hash: String§next_type: Option<CodeType>§timeout: Option<i32>Trait Implementations§
Source§impl Deserializable for SentCode
impl Deserializable for SentCode
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 Identifiable for SentCode
impl Identifiable for SentCode
Source§const CONSTRUCTOR_ID: u32 = 0x5e002502
const CONSTRUCTOR_ID: u32 = 0x5e002502
The constructor ID as specified in the TL schema.
Source§impl Serializable for SentCode
impl Serializable for SentCode
impl StructuralPartialEq for SentCode
Auto Trait Implementations§
impl Freeze for SentCode
impl RefUnwindSafe for SentCode
impl Send for SentCode
impl Sync for SentCode
impl Unpin for SentCode
impl UnsafeUnpin for SentCode
impl UnwindSafe for SentCode
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