Enum roux::util::option::TimePeriod
source · pub enum TimePeriod {
Now,
Today,
ThisWeek,
ThisMonth,
ThisYear,
AllTime,
}
Expand description
Allows you to request a certain time period. This only works in certain situations, like when asking for top of a subreddit
Variants§
Now
Posts from very recently
Today
Posts from today
ThisWeek
Posts from this week
ThisMonth
Posts from this month
ThisYear
Posts from this year
AllTime
All posts
Implementations§
source§impl TimePeriod
impl TimePeriod
sourcepub fn get_string_for_period(&self) -> &str
pub fn get_string_for_period(&self) -> &str
Gets the request string for the period
Trait Implementations§
source§impl Clone for TimePeriod
impl Clone for TimePeriod
source§fn clone(&self) -> TimePeriod
fn clone(&self) -> TimePeriod
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 TimePeriod
impl Debug for TimePeriod
impl Copy for TimePeriod
Auto Trait Implementations§
impl RefUnwindSafe for TimePeriod
impl Send for TimePeriod
impl Sync for TimePeriod
impl Unpin for TimePeriod
impl UnwindSafe for TimePeriod
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