pub struct MessageActionStarGift {Show 21 fields
pub name_hidden: bool,
pub saved: bool,
pub converted: bool,
pub upgraded: bool,
pub refunded: bool,
pub can_upgrade: bool,
pub prepaid_upgrade: bool,
pub upgrade_separate: bool,
pub auction_acquired: bool,
pub gift: StarGift,
pub message: Option<TextWithEntities>,
pub convert_stars: Option<i64>,
pub upgrade_msg_id: Option<i32>,
pub upgrade_stars: Option<i64>,
pub from_id: Option<Peer>,
pub peer: Option<Peer>,
pub saved_id: Option<i64>,
pub prepaid_upgrade_hash: Option<String>,
pub gift_msg_id: Option<i32>,
pub to_id: Option<Peer>,
pub gift_num: Option<i32>,
}Expand description
Generated from:
messageActionStarGift#ea2c31d3 flags:# name_hidden:flags.0?true saved:flags.2?true converted:flags.3?true upgraded:flags.5?true refunded:flags.9?true can_upgrade:flags.10?true prepaid_upgrade:flags.13?true upgrade_separate:flags.16?true auction_acquired:flags.17?true gift:StarGift message:flags.1?TextWithEntities convert_stars:flags.4?long upgrade_msg_id:flags.5?int upgrade_stars:flags.8?long from_id:flags.11?Peer peer:flags.12?Peer saved_id:flags.12?long prepaid_upgrade_hash:flags.14?string gift_msg_id:flags.15?int to_id:flags.18?Peer gift_num:flags.19?int = MessageActionFields§
§saved: bool§converted: bool§upgraded: bool§refunded: bool§can_upgrade: bool§prepaid_upgrade: bool§upgrade_separate: bool§auction_acquired: bool§gift: StarGift§message: Option<TextWithEntities>§convert_stars: Option<i64>§upgrade_msg_id: Option<i32>§upgrade_stars: Option<i64>§from_id: Option<Peer>§peer: Option<Peer>§saved_id: Option<i64>§prepaid_upgrade_hash: Option<String>§gift_msg_id: Option<i32>§to_id: Option<Peer>§gift_num: Option<i32>Trait Implementations§
Source§impl Clone for MessageActionStarGift
impl Clone for MessageActionStarGift
Source§fn clone(&self) -> MessageActionStarGift
fn clone(&self) -> MessageActionStarGift
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 MessageActionStarGift
impl Debug for MessageActionStarGift
Source§impl Deserializable for MessageActionStarGift
impl Deserializable for MessageActionStarGift
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<MessageActionStarGift> for MessageAction
impl From<MessageActionStarGift> for MessageAction
Source§fn from(x: MessageActionStarGift) -> Self
fn from(x: MessageActionStarGift) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageActionStarGift
impl Identifiable for MessageActionStarGift
Source§const CONSTRUCTOR_ID: u32 = 0xea2c31d3
const CONSTRUCTOR_ID: u32 = 0xea2c31d3
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageActionStarGift
impl PartialEq for MessageActionStarGift
Source§impl Serializable for MessageActionStarGift
impl Serializable for MessageActionStarGift
Source§impl TryFrom<MessageAction> for MessageActionStarGift
impl TryFrom<MessageAction> for MessageActionStarGift
Source§type Error = MessageAction
type Error = MessageAction
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageActionStarGift
Auto Trait Implementations§
impl Freeze for MessageActionStarGift
impl RefUnwindSafe for MessageActionStarGift
impl Send for MessageActionStarGift
impl Sync for MessageActionStarGift
impl Unpin for MessageActionStarGift
impl UnsafeUnpin for MessageActionStarGift
impl UnwindSafe for MessageActionStarGift
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