pub struct CheckedGiftCode {
pub via_giveaway: bool,
pub from_id: Option<Peer>,
pub giveaway_msg_id: Option<i32>,
pub to_id: Option<i64>,
pub date: i32,
pub days: i32,
pub used_date: Option<i32>,
pub chats: Vec<Chat>,
pub users: Vec<User>,
}Expand description
Generated from:
payments.checkedGiftCode#eb983f8f flags:# via_giveaway:flags.2?true from_id:flags.4?Peer giveaway_msg_id:flags.3?int to_id:flags.0?long date:int days:int used_date:flags.1?int chats:Vector<Chat> users:Vector<User> = payments.CheckedGiftCodeFields§
§via_giveaway: bool§from_id: Option<Peer>§giveaway_msg_id: Option<i32>§to_id: Option<i64>§date: i32§days: i32§used_date: Option<i32>§chats: Vec<Chat>§users: Vec<User>Trait Implementations§
Source§impl Clone for CheckedGiftCode
impl Clone for CheckedGiftCode
Source§fn clone(&self) -> CheckedGiftCode
fn clone(&self) -> CheckedGiftCode
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 CheckedGiftCode
impl Debug for CheckedGiftCode
Source§impl Deserializable for CheckedGiftCode
impl Deserializable for CheckedGiftCode
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<CheckedGiftCode> for CheckedGiftCode
impl From<CheckedGiftCode> for CheckedGiftCode
Source§fn from(x: CheckedGiftCode) -> Self
fn from(x: CheckedGiftCode) -> Self
Converts to this type from the input type.
Source§impl Identifiable for CheckedGiftCode
impl Identifiable for CheckedGiftCode
Source§const CONSTRUCTOR_ID: u32 = 0xeb983f8f
const CONSTRUCTOR_ID: u32 = 0xeb983f8f
The constructor ID as specified in the TL schema.
Source§impl PartialEq for CheckedGiftCode
impl PartialEq for CheckedGiftCode
Source§impl Serializable for CheckedGiftCode
impl Serializable for CheckedGiftCode
Source§impl TryFrom<CheckedGiftCode> for CheckedGiftCode
impl TryFrom<CheckedGiftCode> for CheckedGiftCode
Source§type Error = CheckedGiftCode
type Error = CheckedGiftCode
The type returned in the event of a conversion error.
impl StructuralPartialEq for CheckedGiftCode
Auto Trait Implementations§
impl Freeze for CheckedGiftCode
impl RefUnwindSafe for CheckedGiftCode
impl Send for CheckedGiftCode
impl Sync for CheckedGiftCode
impl Unpin for CheckedGiftCode
impl UnsafeUnpin for CheckedGiftCode
impl UnwindSafe for CheckedGiftCode
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