pub struct EditionProgress {
pub year: usize,
pub days: Vec<ProgressDayReport>,
pub synced_at_unix_seconds: Option<u64>,
}Fields§
§year: usize§days: Vec<ProgressDayReport>§synced_at_unix_seconds: Option<u64>Implementations§
Source§impl EditionProgress
impl EditionProgress
pub fn new( year: usize, registered: Option<&[(usize, usize)]>, local: &LocalProgress, snapshot: Option<&StarSnapshot>, ) -> Self
pub fn earned_stars(&self) -> usize
pub fn possible_stars(&self) -> usize
pub fn completed_days(&self) -> usize
Sourcepub fn completion_percent(&self) -> Option<usize>
pub fn completion_percent(&self) -> Option<usize>
Returns completion against all possible stars in the edition.
Sourcepub fn has_complete_star_coverage(&self) -> bool
pub fn has_complete_star_coverage(&self) -> bool
Returns whether the snapshot covers every currently unlocked day.
Trait Implementations§
Auto Trait Implementations§
impl Forget for EditionProgress
impl Freeze for EditionProgress
impl Move for EditionProgress
impl RefUnwindSafe for EditionProgress
impl Send for EditionProgresswhere
RawVecInner: Send,
impl Sync for EditionProgresswhere
RawVecInner: Sync,
impl Unpin for EditionProgress
impl UnsafeUnpin for EditionProgress
impl UnwindSafe for EditionProgresswhere
RawVecInner: UnwindSafe,
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