pub struct PrepaidGiveaway {
pub id: i64,
pub months: i32,
pub quantity: i32,
pub date: i32,
}Expand description
Generated from:
prepaidGiveaway#b2539d54 id:long months:int quantity:int date:int = PrepaidGiveawayFields§
§id: i64§months: i32§quantity: i32§date: i32Trait Implementations§
Source§impl Clone for PrepaidGiveaway
impl Clone for PrepaidGiveaway
Source§fn clone(&self) -> PrepaidGiveaway
fn clone(&self) -> PrepaidGiveaway
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 PrepaidGiveaway
impl Debug for PrepaidGiveaway
Source§impl Deserializable for PrepaidGiveaway
impl Deserializable for PrepaidGiveaway
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<PrepaidGiveaway> for PrepaidGiveaway
impl From<PrepaidGiveaway> for PrepaidGiveaway
Source§fn from(x: PrepaidGiveaway) -> Self
fn from(x: PrepaidGiveaway) -> Self
Converts to this type from the input type.
Source§impl Identifiable for PrepaidGiveaway
impl Identifiable for PrepaidGiveaway
Source§const CONSTRUCTOR_ID: u32 = 0xb2539d54
const CONSTRUCTOR_ID: u32 = 0xb2539d54
The constructor ID as specified in the TL schema.
Source§impl PartialEq for PrepaidGiveaway
impl PartialEq for PrepaidGiveaway
Source§impl Serializable for PrepaidGiveaway
impl Serializable for PrepaidGiveaway
Source§impl TryFrom<PrepaidGiveaway> for PrepaidGiveaway
impl TryFrom<PrepaidGiveaway> for PrepaidGiveaway
Source§type Error = PrepaidGiveaway
type Error = PrepaidGiveaway
The type returned in the event of a conversion error.
impl StructuralPartialEq for PrepaidGiveaway
Auto Trait Implementations§
impl Freeze for PrepaidGiveaway
impl RefUnwindSafe for PrepaidGiveaway
impl Send for PrepaidGiveaway
impl Sync for PrepaidGiveaway
impl Unpin for PrepaidGiveaway
impl UnsafeUnpin for PrepaidGiveaway
impl UnwindSafe for PrepaidGiveaway
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