#[repr(u32)]pub enum Origin {
Show 30 variants
TimedDrop = 0,
Achievement = 1,
Purchased = 2,
Traded = 3,
Crafted = 4,
StorePromotion = 5,
Gifted = 6,
SupportGranted = 7,
FoundInCrate = 8,
Earned = 9,
ThirdPartyPromotion = 10,
WrappedGift = 11,
HalloweenDrop = 12,
SteamPurchase = 13,
ForeignItem = 14,
CDKey = 15,
CollectionReward = 16,
PreviewItem = 17,
SteamWorkshopContribution = 18,
PeriodicScoreReward = 19,
MvMBadgeCompletionReward = 20,
MvMSquadSurplusReward = 21,
RecipeOutput = 22,
QuestDrop = 23,
QuestLoanerItem = 24,
TradeUp = 25,
ViralCompetitiveBetaPassSpread = 26,
CYOABloodMoneyPurchase = 27,
WarPaint = 28,
UntradableFreeContractReward = 29,
}Expand description
Origin.
Variants§
TimedDrop = 0
Achievement = 1
Purchased = 2
Traded = 3
Crafted = 4
StorePromotion = 5
Gifted = 6
SupportGranted = 7
FoundInCrate = 8
Earned = 9
ThirdPartyPromotion = 10
WrappedGift = 11
HalloweenDrop = 12
SteamPurchase = 13
ForeignItem = 14
CDKey = 15
CollectionReward = 16
PreviewItem = 17
SteamWorkshopContribution = 18
PeriodicScoreReward = 19
MvMBadgeCompletionReward = 20
MvMSquadSurplusReward = 21
RecipeOutput = 22
QuestDrop = 23
QuestLoanerItem = 24
TradeUp = 25
ViralCompetitiveBetaPassSpread = 26
CYOABloodMoneyPurchase = 27
WarPaint = 28
UntradableFreeContractReward = 29
Trait Implementations§
source§impl<'de> Deserialize<'de> for Origin
impl<'de> Deserialize<'de> for Origin
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 Ord for Origin
impl Ord for Origin
source§impl PartialEq for Origin
impl PartialEq for Origin
source§impl PartialOrd for Origin
impl PartialOrd for Origin
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<u32> for Origin
impl TryFrom<u32> for Origin
§type Error = TryFromPrimitiveError<Origin>
type Error = TryFromPrimitiveError<Origin>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Origin
impl TryFromPrimitive for Origin
impl Copy for Origin
impl Eq for Origin
impl StructuralEq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnwindSafe for Origin
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