pub struct GroupsFollowupsResource<'a> { /* private fields */ }Expand description
client.groups().followups()
Implementations§
Source§impl<'a> GroupsFollowupsResource<'a>
impl<'a> GroupsFollowupsResource<'a>
Sourcepub fn get_statistics(
&self,
group_id: impl Display,
) -> Result<FollowUpStatistics>
pub fn get_statistics( &self, group_id: impl Display, ) -> Result<FollowUpStatistics>
Count follow-ups for a group by due state
GET /groups/{groupId}/followups/statistics
Counts follow-ups in this group assigned to the current user, plus unassigned follow-ups where that user has group follow-up rights. Items assigned to other people and archived subject persons are excluded, matching the group list scope. Requires permission to administer or perform follow-ups in this group. The counters cover all matching records and ignore list pagination and filter parameters. Due states use the effective due date and the server’s current date; dismissed and completed follow-ups share countDone. An empty scope returns all five counters as zero.
§Example
let statistic = client.groups().followups().get_statistics(42)?;
println!("{}", statistic.count_done);Sourcepub fn list(&self, group_id: impl Display) -> Result<Vec<FollowUp2>>
pub fn list(&self, group_id: impl Display) -> Result<Vec<FollowUp2>>
List follow-ups for group memberships
GET /groups/{groupId}/followups
Returns follow-ups associated with this group, restricted to items assigned to the current user and unassigned items in groups where that user has follow-up rights. Items assigned to other people are omitted even if the current user can view them individually. Requires permission to administer or perform follow-ups in this group. Follow-ups whose subject person is archived are excluded. State filters are combined with OR; omission includes all states. Results are ordered by completion date descending, effective due date ascending, then ID. Pagination returns only meta.count for this page, without a total or last-page value.
Use Self::list_with to pass query parameters.
§Example
for followup in client.groups().followups().list(42)? {
println!("{}", followup.title);
}Sourcepub fn list_with(
&self,
group_id: impl Display,
query: &GetGroupsGroupIdFollowupsQuery,
) -> Result<Vec<FollowUp2>>
pub fn list_with( &self, group_id: impl Display, query: &GetGroupsGroupIdFollowupsQuery, ) -> Result<Vec<FollowUp2>>
List follow-ups for group memberships
Like Self::list, with query parameters.
GET /groups/{groupId}/followups
Returns follow-ups associated with this group, restricted to items assigned to the current user and unassigned items in groups where that user has follow-up rights. Items assigned to other people are omitted even if the current user can view them individually. Requires permission to administer or perform follow-ups in this group. Follow-ups whose subject person is archived are excluded. State filters are combined with OR; omission includes all states. Results are ordered by completion date descending, effective due date ascending, then ID. Pagination returns only meta.count for this page, without a total or last-page value.
Sourcepub fn list_iter(
&self,
group_id: impl Display,
query: &GetGroupsGroupIdFollowupsQuery,
) -> Items<FollowUp2> ⓘ
pub fn list_iter( &self, group_id: impl Display, query: &GetGroupsGroupIdFollowupsQuery, ) -> Items<FollowUp2> ⓘ
List follow-ups for group memberships
Like Self::list_with, but lazy: each page is fetched only when the iteration reaches it.
Breaking off early saves the remaining requests.