pub struct GetPostSearchQuery {
pub query: Option<String>,
pub order_by: Option<String>,
pub order_direction: Option<String>,
pub before: Option<DateTime<Utc>>,
pub after: Option<DateTime<Utc>>,
pub campus_ids: Option<Vec<i64>>,
pub actor_ids: Option<Vec<i64>>,
pub group_visibility: Option<String>,
pub post_visibility: Option<String>,
pub group_ids: Option<Vec<i64>>,
pub include: Option<Vec<String>>,
pub only_my_groups: Option<bool>,
}Expand description
Query parameters for GET /post/search.
Fields§
§query: Option<String>The query string to search for in post title and content
order_by: Option<String>The order the posts are returned in.
Allowed values: publishedDate, relevance.
order_direction: Option<String>The order direction. Only works for order_by publishedDate.
Allowed values: ASC, DESC.
before: Option<DateTime<Utc>>If set, only posts created before this date are returned. The date must be in RFC3339 format (Zulu-Date).
after: Option<DateTime<Utc>>If set, only posts created after this date are returned. The date must be in RFC3339 format (Zulu-Date).
campus_ids: Option<Vec<i64>>If set, only posts of these campuses are returned. If not set, posts of all campuses are returned.
actor_ids: Option<Vec<i64>>If set, only posts by these persons are returned. If not set, posts by all persons are returned.
group_visibility: Option<String>If set, only posts are returned that belong to groups with this visibility.
Allowed values: hidden, intern, public, restricted.
post_visibility: Option<String>If set, only posts with that visibility are returned.
Allowed values: group_intern, group_visible.
group_ids: Option<Vec<i64>>If set, only posts of these groups are returned. If not set, posts of all groups are returned.
include: Option<Vec<String>>If set, the response will include the specified data.
Allowed values: comments, linkings, reactions.
only_my_groups: Option<bool>If set to true, only posts of groups the user is member of are returned. If not set, posts of all groups are returned.