pub struct BadgeProgress {
pub new: bool,
pub done: u16,
pub goal: u16,
}
Fields§
§new: bool
If true, the earning of the badge hasn’t been shown to the player yet.
done: u16
How many points are already earned for the badge.
goal: u16
How many points needed to earn the badge.
Implementations§
Trait Implementations§
Source§impl Clone for BadgeProgress
impl Clone for BadgeProgress
Source§fn clone(&self) -> BadgeProgress
fn clone(&self) -> BadgeProgress
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 BadgeProgress
impl Debug for BadgeProgress
Source§impl<'de> Deserialize<'de> for BadgeProgress
impl<'de> Deserialize<'de> for BadgeProgress
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 BadgeProgress
impl PartialEq for BadgeProgress
Source§impl Serialize for BadgeProgress
impl Serialize for BadgeProgress
impl Eq for BadgeProgress
impl StructuralPartialEq for BadgeProgress
Auto Trait Implementations§
impl Freeze for BadgeProgress
impl RefUnwindSafe for BadgeProgress
impl Send for BadgeProgress
impl Sync for BadgeProgress
impl Unpin for BadgeProgress
impl UnwindSafe for BadgeProgress
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