pub struct PersonsFollowupsResource<'a> { /* private fields */ }Expand description
client.persons().followups()
Implementations§
Source§impl<'a> PersonsFollowupsResource<'a>
impl<'a> PersonsFollowupsResource<'a>
Sourcepub fn create(
&self,
person_id: impl Display,
body: &FollowUpCreate,
) -> Result<FollowUp2>
pub fn create( &self, person_id: impl Display, body: &FollowUpCreate, ) -> Result<FollowUp2>
Create a follow-up concerning a person
POST /persons/{personId}/followups
Creates a task concerning this person without a group or membership context. The subject person is distinct from ownerId, which identifies who should handle the task. Requires permission to view the person; a configured success group additionally requires permission to add members there, or the corresponding group-type permission. Missing/null ownerId assigns the task to the current user. A new specification is created from the title and display/success settings. A due date is optional and may lie in the past. Configuring a success group does not itself add a membership; the completion request must explicitly select the target group.
§Example
let body = models::FollowUpCreate {
title: "Call Peter".into(),
..Default::default()
};
let result = client.persons().followups().create(42, &body)?;
println!("{}", result.title);Sourcepub fn get_statistics(
&self,
person_id: impl Display,
) -> Result<FollowUpStatistics>
pub fn get_statistics( &self, person_id: impl Display, ) -> Result<FollowUpStatistics>
Get follow-up counts for a person
GET /persons/{personId}/followups/statistics
Counts follow-ups concerning this person, including tasks linked to group memberships. Requires permission to view the person. Counts are restricted to tasks assigned to the current user and unassigned tasks in groups where that user has follow-up rights; tasks assigned to other people are omitted. Archived subject persons are excluded. Counts cover all matching tasks independently of list pagination and state filters. Due categories use the effective due date and the server’s current date. countDone includes both completed and dismissed tasks. Empty results return zero for every category.
§Example
let statistic = client.persons().followups().get_statistics(42)?;
println!("{}", statistic.count_done);Sourcepub fn list(&self, person_id: impl Display) -> Result<Vec<FollowUp2>>
pub fn list(&self, person_id: impl Display) -> Result<Vec<FollowUp2>>
Get a person’s follow-ups
GET /persons/{personId}/followups
Lists tasks concerning this person, including tasks linked to group memberships. The subject person is distinct from ownerId, which identifies who handles the task. Requires permission to view the person. Results are restricted to tasks assigned to the current user and unassigned tasks in groups where that user has follow-up rights; tasks assigned to others are omitted even if individually viewable. Archived subject persons 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 meta.count for this page only, without a total or last-page value.
Use Self::list_with to pass query parameters.
§Example
for followup in client.persons().followups().list(42)? {
println!("{}", followup.title);
}Sourcepub fn list_with(
&self,
person_id: impl Display,
query: &GetPersonsPersonIdFollowupsQuery,
) -> Result<Vec<FollowUp2>>
pub fn list_with( &self, person_id: impl Display, query: &GetPersonsPersonIdFollowupsQuery, ) -> Result<Vec<FollowUp2>>
Get a person’s follow-ups
Like Self::list, with query parameters.
GET /persons/{personId}/followups
Lists tasks concerning this person, including tasks linked to group memberships. The subject person is distinct from ownerId, which identifies who handles the task. Requires permission to view the person. Results are restricted to tasks assigned to the current user and unassigned tasks in groups where that user has follow-up rights; tasks assigned to others are omitted even if individually viewable. Archived subject persons 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 meta.count for this page only, without a total or last-page value.
Sourcepub fn list_iter(
&self,
person_id: impl Display,
query: &GetPersonsPersonIdFollowupsQuery,
) -> Items<FollowUp2> ⓘ
pub fn list_iter( &self, person_id: impl Display, query: &GetPersonsPersonIdFollowupsQuery, ) -> Items<FollowUp2> ⓘ
Get a person’s follow-ups
Like Self::list_with, but lazy: each page is fetched only when the iteration reaches it.
Breaking off early saves the remaining requests.