pub struct ListPostsBuilder {
pub sort: SortOrder,
pub page: u64,
pub username: Option<String>,
pub profile: bool,
}Expand description
A builder for listing posts
Fields§
§sort: SortOrderHow posts should be sorted.
Defaults to popular.
page: u64The page to get.
Starts at 1.
username: Option<String>The username to filter posts by.
profile: boolWhether to list posts from the current user.
Implementations§
Trait Implementations§
Source§impl Clone for ListPostsBuilder
impl Clone for ListPostsBuilder
Source§fn clone(&self) -> ListPostsBuilder
fn clone(&self) -> ListPostsBuilder
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 ListPostsBuilder
impl Debug for ListPostsBuilder
Auto Trait Implementations§
impl Freeze for ListPostsBuilder
impl RefUnwindSafe for ListPostsBuilder
impl Send for ListPostsBuilder
impl Sync for ListPostsBuilder
impl Unpin for ListPostsBuilder
impl UnwindSafe for ListPostsBuilder
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