pub enum UpgradedGiftOrigin {
Upgrade(UpgradedGiftOriginUpgrade),
Transfer,
Resale(UpgradedGiftOriginResale),
Blockchain,
PrepaidUpgrade,
Offer(UpgradedGiftOriginOffer),
Craft,
}Variants§
Upgrade(UpgradedGiftOriginUpgrade)
The gift was obtained by upgrading of a previously received gift
Transfer
The gift was transferred from another owner
Resale(UpgradedGiftOriginResale)
The gift was bought from another user
Blockchain
The gift was assigned from blockchain and isn’t owned by the current user. The gift can’t be transferred, resold or withdrawn to blockchain
PrepaidUpgrade
The sender or receiver of the message has paid for upgraid of the gift, which has been completed
Offer(UpgradedGiftOriginOffer)
The gift was bought through an offer
Craft
The gift was crafted from other gifts
Trait Implementations§
Source§impl Clone for UpgradedGiftOrigin
impl Clone for UpgradedGiftOrigin
Source§fn clone(&self) -> UpgradedGiftOrigin
fn clone(&self) -> UpgradedGiftOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpgradedGiftOrigin
impl Debug for UpgradedGiftOrigin
Source§impl<'de> Deserialize<'de> for UpgradedGiftOrigin
impl<'de> Deserialize<'de> for UpgradedGiftOrigin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpgradedGiftOrigin
impl PartialEq for UpgradedGiftOrigin
Source§fn eq(&self, other: &UpgradedGiftOrigin) -> bool
fn eq(&self, other: &UpgradedGiftOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpgradedGiftOrigin
impl Serialize for UpgradedGiftOrigin
impl StructuralPartialEq for UpgradedGiftOrigin
Auto Trait Implementations§
impl Freeze for UpgradedGiftOrigin
impl RefUnwindSafe for UpgradedGiftOrigin
impl Send for UpgradedGiftOrigin
impl Sync for UpgradedGiftOrigin
impl Unpin for UpgradedGiftOrigin
impl UnsafeUnpin for UpgradedGiftOrigin
impl UnwindSafe for UpgradedGiftOrigin
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