pub struct Boost {
pub gift: bool,
pub giveaway: bool,
pub unclaimed: bool,
pub id: String,
pub user_id: Option<i64>,
pub giveaway_msg_id: Option<i32>,
pub date: i32,
pub expires: i32,
pub used_gift_slug: Option<String>,
pub multiplier: Option<i32>,
pub stars: Option<i64>,
}Expand description
Generated from:
boost#4b3e14d6 flags:# gift:flags.1?true giveaway:flags.2?true unclaimed:flags.3?true id:string user_id:flags.0?long giveaway_msg_id:flags.2?int date:int expires:int used_gift_slug:flags.4?string multiplier:flags.5?int stars:flags.6?long = BoostFields§
§gift: bool§giveaway: bool§unclaimed: bool§id: String§user_id: Option<i64>§giveaway_msg_id: Option<i32>§date: i32§expires: i32§used_gift_slug: Option<String>§multiplier: Option<i32>§stars: Option<i64>Trait Implementations§
Source§impl Deserializable for Boost
impl Deserializable for Boost
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 Boost
impl Identifiable for Boost
Source§const CONSTRUCTOR_ID: u32 = 0x4b3e14d6
const CONSTRUCTOR_ID: u32 = 0x4b3e14d6
The constructor ID as specified in the TL schema.
Source§impl Serializable for Boost
impl Serializable for Boost
impl StructuralPartialEq for Boost
Auto Trait Implementations§
impl Freeze for Boost
impl RefUnwindSafe for Boost
impl Send for Boost
impl Sync for Boost
impl Unpin for Boost
impl UnsafeUnpin for Boost
impl UnwindSafe for Boost
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