pub struct GetPostsQuery {
pub before: Option<DateTime<Utc>>,
pub last_post_identifier: Option<String>,
pub after: Option<DateTime<Utc>>,
pub campus_id: Option<i64>,
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 limit: Option<i64>,
pub only_my_groups: Option<bool>,
}Expand description
Query parameters for GET /posts.
Fields§
§before: Option<DateTime<Utc>>If set, only posts published before this date are returned. The date must be in RFC3339 format (Zulu-Date).
last_post_identifier: Option<String>If set, posts published at the before date are included in the result, if the guids of the posts are lexically smaller than the last_post_identifier. Will be ignored if before is not set.
after: Option<DateTime<Utc>>If set, only posts published at or after this date are returned. The date must be in RFC3339 format (Zulu-Date).
campus_id: Option<i64>deprecated in the ChurchTools API
Deprecated. If set, only posts of this campus are returned. If not set, posts of all campuses are returned.
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.
limit: Option<i64>Number of results per page.
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.