pub struct MyBoost {
pub slot: i32,
pub peer: Option<Peer>,
pub date: i32,
pub expires: i32,
pub cooldown_until_date: Option<i32>,
}Expand description
Generated from:
myBoost#c448415c flags:# slot:int peer:flags.0?Peer date:int expires:int cooldown_until_date:flags.1?int = MyBoostFields§
§slot: i32§peer: Option<Peer>§date: i32§expires: i32§cooldown_until_date: Option<i32>Trait Implementations§
Source§impl Deserializable for MyBoost
impl Deserializable for MyBoost
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 MyBoost
impl Identifiable for MyBoost
Source§const CONSTRUCTOR_ID: u32 = 0xc448415c
const CONSTRUCTOR_ID: u32 = 0xc448415c
The constructor ID as specified in the TL schema.
Source§impl Serializable for MyBoost
impl Serializable for MyBoost
impl StructuralPartialEq for MyBoost
Auto Trait Implementations§
impl Freeze for MyBoost
impl RefUnwindSafe for MyBoost
impl Send for MyBoost
impl Sync for MyBoost
impl Unpin for MyBoost
impl UnsafeUnpin for MyBoost
impl UnwindSafe for MyBoost
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