pub struct Reward {
pub counted_items: Vec<RewardCountedItemsInner>,
pub thumbnail: String,
pub color: f64,
pub credits: i32,
pub as_string: String,
pub items: Vec<String>,
pub item_string: String,
}Fields§
§counted_items: Vec<RewardCountedItemsInner>Items that have a quantity attached
thumbnail: Stringthumbnail URL
color: f64RGB value as an int assigned to this reward
credits: i32Amount of credits awarded
as_string: Stringstring representation of the reward
items: Vec<String>Items’ names possible to be won
item_string: Stringformatted string describing all included items
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reward
impl<'de> Deserialize<'de> for Reward
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
impl StructuralPartialEq for Reward
Auto Trait Implementations§
impl Freeze for Reward
impl RefUnwindSafe for Reward
impl Send for Reward
impl Sync for Reward
impl Unpin for Reward
impl UnwindSafe for Reward
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