Skip to main content

asana/model/
get_projects_for_task_response.rs

1use serde::{Serialize, Deserialize};
2use super::{NextPage, ProjectCompact};
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct GetProjectsForTaskResponse {
5    #[serde(skip_serializing_if = "Option::is_none")]
6    pub data: Option<Vec<ProjectCompact>>,
7    ///*Conditional*. This property is only present when a limit query parameter is provided in the request. When making a paginated request, the API will return a number of results as specified by the limit parameter. If more results exist, then the response will contain a next_page attribute, which will include an offset, a relative path attribute, and a full uri attribute. If there are no more pages available, next_page will be null and no offset will be provided. Note that an offset token will expire after some time, as data may have changed.
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub next_page: Option<NextPage>,
10}
11impl std::fmt::Display for GetProjectsForTaskResponse {
12    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
13        write!(f, "{}", serde_json::to_string(self).unwrap())
14    }
15}