Struct roux::util::option::FeedOption
source · pub struct FeedOption {
pub after: Option<String>,
pub before: Option<String>,
pub limit: Option<u32>,
pub count: Option<u32>,
pub period: Option<TimePeriod>,
}
Expand description
Basic feed options
Fields§
§after: Option<String>
after
and before
indicate the fullname of an item in the listing to use as the anchor point of the slice.
before: Option<String>
Only one should be specified.
limit: Option<u32>
The number of items that can be in this listing.
count: Option<u32>
The number of items already seen in this listing.
period: Option<TimePeriod>
What time period to request (only works on some requests, like top)
Implementations§
source§impl FeedOption
impl FeedOption
sourcepub fn new() -> FeedOption
pub fn new() -> FeedOption
Create a new FeedOption
instance.
sourcepub fn after(self, ty: &str) -> FeedOption
pub fn after(self, ty: &str) -> FeedOption
Set after param.
sourcepub fn before(self, ty: &str) -> FeedOption
pub fn before(self, ty: &str) -> FeedOption
Set before param.
sourcepub fn count(self, ty: u32) -> FeedOption
pub fn count(self, ty: u32) -> FeedOption
Set count param.
sourcepub fn limit(self, ty: u32) -> FeedOption
pub fn limit(self, ty: u32) -> FeedOption
Set limit param.
sourcepub fn period(self, period: TimePeriod) -> FeedOption
pub fn period(self, period: TimePeriod) -> FeedOption
Set period
Trait Implementations§
source§impl Clone for FeedOption
impl Clone for FeedOption
source§fn clone(&self) -> FeedOption
fn clone(&self) -> FeedOption
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 FeedOption
impl Debug for FeedOption
Auto Trait Implementations§
impl RefUnwindSafe for FeedOption
impl Send for FeedOption
impl Sync for FeedOption
impl Unpin for FeedOption
impl UnwindSafe for FeedOption
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