Struct meztide::request_models::ReqPosts
source · pub struct ReqPosts<'a> {
pub include_your: Option<bool>,
pub sort: Option<ContentSort>,
pub search: Option<&'a str>,
pub in_any_local_community: Option<bool>,
pub use_aggregate_filters: Option<bool>,
pub community: Option<CommunityId>,
pub in_your_follows: Option<bool>,
pub created_within: Option<&'a str>,
pub sort_sticky: Option<bool>,
pub limit: Option<u32>,
pub page: Option<PageId>,
}
Fields§
§include_your: Option<bool>
§sort: Option<ContentSort>
§search: Option<&'a str>
§in_any_local_community: Option<bool>
Filter by whether the post is approved in a local community
use_aggregate_filters: Option<bool>
If true, will omit posts from communities marked as hide_posts_from_aggregates
community: Option<CommunityId>
If present, will filter to posts approved in the specified community
in_your_follows: Option<bool>
Filter by whether the post is approved in one of the communities you follow
created_within: Option<&'a str>
How far into the past to include posts from, as an ISO8601 duration.
sort_sticky: Option<bool>
If true, will sort sticky posts to the top
limit: Option<u32>
§page: Option<PageId>
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for ReqPosts<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ReqPosts<'a>
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<'a> RefUnwindSafe for ReqPosts<'a>
impl<'a> Send for ReqPosts<'a>
impl<'a> Sync for ReqPosts<'a>
impl<'a> Unpin for ReqPosts<'a>
impl<'a> UnwindSafe for ReqPosts<'a>
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