#[non_exhaustive]pub struct LeaderboardRange {
pub end_date: String,
pub end_text: String,
pub name: String,
pub start_date: String,
pub start_text: String,
pub text: String,
}Expand description
Date range metadata for a LeaderboardResponse.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.end_date: StringEnd date string (e.g. "2025-01-13").
end_text: StringShort human-readable end date (e.g. "Jan 13").
name: StringNamed range identifier (e.g. "last_7_days").
start_date: StringStart date string (e.g. "2025-01-07").
start_text: StringShort human-readable start date (e.g. "Jan 7").
text: StringFull human-readable range description (e.g. "Last 7 Days").
Trait Implementations§
Source§impl Clone for LeaderboardRange
impl Clone for LeaderboardRange
Source§fn clone(&self) -> LeaderboardRange
fn clone(&self) -> LeaderboardRange
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 LeaderboardRange
impl Debug for LeaderboardRange
Source§impl<'de> Deserialize<'de> for LeaderboardRange
impl<'de> Deserialize<'de> for LeaderboardRange
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 LeaderboardRange
impl RefUnwindSafe for LeaderboardRange
impl Send for LeaderboardRange
impl Sync for LeaderboardRange
impl Unpin for LeaderboardRange
impl UnsafeUnpin for LeaderboardRange
impl UnwindSafe for LeaderboardRange
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