pub struct MessageActionGiftStars {
pub currency: String,
pub amount: i64,
pub stars: i64,
pub crypto_currency: Option<String>,
pub crypto_amount: Option<i64>,
pub transaction_id: Option<String>,
}Expand description
Generated from:
messageActionGiftStars#45d5b021 flags:# currency:string amount:long stars:long crypto_currency:flags.0?string crypto_amount:flags.0?long transaction_id:flags.1?string = MessageActionFields§
§currency: String§amount: i64§stars: i64§crypto_currency: Option<String>§crypto_amount: Option<i64>§transaction_id: Option<String>Trait Implementations§
Source§impl Clone for MessageActionGiftStars
impl Clone for MessageActionGiftStars
Source§fn clone(&self) -> MessageActionGiftStars
fn clone(&self) -> MessageActionGiftStars
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 MessageActionGiftStars
impl Debug for MessageActionGiftStars
Source§impl Deserializable for MessageActionGiftStars
impl Deserializable for MessageActionGiftStars
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<MessageActionGiftStars> for MessageAction
impl From<MessageActionGiftStars> for MessageAction
Source§fn from(x: MessageActionGiftStars) -> Self
fn from(x: MessageActionGiftStars) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageActionGiftStars
impl Identifiable for MessageActionGiftStars
Source§const CONSTRUCTOR_ID: u32 = 0x45d5b021
const CONSTRUCTOR_ID: u32 = 0x45d5b021
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageActionGiftStars
impl PartialEq for MessageActionGiftStars
Source§impl TryFrom<MessageAction> for MessageActionGiftStars
impl TryFrom<MessageAction> for MessageActionGiftStars
Source§type Error = MessageAction
type Error = MessageAction
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageActionGiftStars
Auto Trait Implementations§
impl Freeze for MessageActionGiftStars
impl RefUnwindSafe for MessageActionGiftStars
impl Send for MessageActionGiftStars
impl Sync for MessageActionGiftStars
impl Unpin for MessageActionGiftStars
impl UnsafeUnpin for MessageActionGiftStars
impl UnwindSafe for MessageActionGiftStars
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