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