Struct lemmy_api_common::post::GetPosts
source · pub struct GetPosts {
pub type_: Option<ListingType>,
pub sort: Option<SortType>,
pub page: Option<i64>,
pub limit: Option<i64>,
pub community_id: Option<CommunityId>,
pub community_name: Option<String>,
pub saved_only: Option<bool>,
pub liked_only: Option<bool>,
pub disliked_only: Option<bool>,
pub show_hidden: Option<bool>,
pub page_cursor: Option<PaginationCursor>,
}Expand description
Get a list of posts.
Fields§
§type_: Option<ListingType>§sort: Option<SortType>§page: Option<i64>DEPRECATED, use page_cursor
limit: Option<i64>§community_id: Option<CommunityId>§community_name: Option<String>§saved_only: Option<bool>§liked_only: Option<bool>§disliked_only: Option<bool>§page_cursor: Option<PaginationCursor>Trait Implementations§
source§impl<'de> Deserialize<'de> for GetPosts
impl<'de> Deserialize<'de> for GetPosts
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
source§impl PartialEq for GetPosts
impl PartialEq for GetPosts
impl Eq for GetPosts
impl StructuralPartialEq for GetPosts
Auto Trait Implementations§
impl Freeze for GetPosts
impl RefUnwindSafe for GetPosts
impl Send for GetPosts
impl Sync for GetPosts
impl Unpin for GetPosts
impl UnwindSafe for GetPosts
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