pub struct RewardChest {
pub opened: bool,
pub required_points: u32,
pub rewards: Vec<Reward>,
}Expand description
Something you can unlock for completing tasks
Fields§
§opened: boolWhether or not this chest has been unlocked
required_points: u32The amount of points required to open this chest
rewards: Vec<Reward>The things you will get for opening this chest
Trait Implementations§
Source§impl Clone for RewardChest
impl Clone for RewardChest
Source§fn clone(&self) -> RewardChest
fn clone(&self) -> RewardChest
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 RewardChest
impl Debug for RewardChest
Source§impl Default for RewardChest
impl Default for RewardChest
Source§fn default() -> RewardChest
fn default() -> RewardChest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RewardChest
impl<'de> Deserialize<'de> for RewardChest
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
Auto Trait Implementations§
impl Freeze for RewardChest
impl RefUnwindSafe for RewardChest
impl Send for RewardChest
impl Sync for RewardChest
impl Unpin for RewardChest
impl UnwindSafe for RewardChest
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