Struct aoc::leaderboard::Leaderboard
source · pub struct Leaderboard { /* private fields */ }
Implementations§
source§impl Leaderboard
impl Leaderboard
pub fn owner_id(&self) -> &str
pub fn event(&self) -> &str
pub fn fetch(leaderboard_url: &str, session_token: &str) -> Result<Leaderboard>
pub fn members<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Member> + 'a>
pub fn num_unlocked_days(&self) -> Result<u8>
pub fn next_unlock_date(&self) -> Result<Option<DateTime<Local>>>
pub fn duration_until_next_unlock(&self) -> Result<Option<Duration>>
Trait Implementations§
source§impl Clone for Leaderboard
impl Clone for Leaderboard
source§fn clone(&self) -> Leaderboard
fn clone(&self) -> Leaderboard
Returns a copy 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 Leaderboard
impl Debug for Leaderboard
source§impl<'de> Deserialize<'de> for Leaderboard
impl<'de> Deserialize<'de> for Leaderboard
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 RefUnwindSafe for Leaderboard
impl Send for Leaderboard
impl Sync for Leaderboard
impl Unpin for Leaderboard
impl UnwindSafe for Leaderboard
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