pub struct MessageActionGiftCode {
pub via_giveaway: bool,
pub unclaimed: bool,
pub boost_peer: Option<Peer>,
pub days: i32,
pub slug: String,
pub currency: Option<String>,
pub amount: Option<i64>,
pub crypto_currency: Option<String>,
pub crypto_amount: Option<i64>,
pub message: Option<TextWithEntities>,
}Expand description
Generated from:
messageActionGiftCode#31c48347 flags:# via_giveaway:flags.0?true unclaimed:flags.5?true boost_peer:flags.1?Peer days:int slug:string currency:flags.2?string amount:flags.2?long crypto_currency:flags.3?string crypto_amount:flags.3?long message:flags.4?TextWithEntities = MessageActionFields§
§via_giveaway: bool§unclaimed: bool§boost_peer: Option<Peer>§days: i32§slug: String§currency: Option<String>§amount: Option<i64>§crypto_currency: Option<String>§crypto_amount: Option<i64>§message: Option<TextWithEntities>Trait Implementations§
Source§impl Clone for MessageActionGiftCode
impl Clone for MessageActionGiftCode
Source§fn clone(&self) -> MessageActionGiftCode
fn clone(&self) -> MessageActionGiftCode
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 MessageActionGiftCode
impl Debug for MessageActionGiftCode
Source§impl Deserializable for MessageActionGiftCode
impl Deserializable for MessageActionGiftCode
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<MessageActionGiftCode> for MessageAction
impl From<MessageActionGiftCode> for MessageAction
Source§fn from(x: MessageActionGiftCode) -> Self
fn from(x: MessageActionGiftCode) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageActionGiftCode
impl Identifiable for MessageActionGiftCode
Source§const CONSTRUCTOR_ID: u32 = 0x31c48347
const CONSTRUCTOR_ID: u32 = 0x31c48347
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageActionGiftCode
impl PartialEq for MessageActionGiftCode
Source§impl Serializable for MessageActionGiftCode
impl Serializable for MessageActionGiftCode
Source§impl TryFrom<MessageAction> for MessageActionGiftCode
impl TryFrom<MessageAction> for MessageActionGiftCode
Source§type Error = MessageAction
type Error = MessageAction
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageActionGiftCode
Auto Trait Implementations§
impl Freeze for MessageActionGiftCode
impl RefUnwindSafe for MessageActionGiftCode
impl Send for MessageActionGiftCode
impl Sync for MessageActionGiftCode
impl Unpin for MessageActionGiftCode
impl UnsafeUnpin for MessageActionGiftCode
impl UnwindSafe for MessageActionGiftCode
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