/*
* Asana
*
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct PortfolioAddItemRequest {
/// The item to add to the portfolio.
#[serde(rename = "item")]
pub item: String,
/// An id of an item in this portfolio. The new item will be added before the one specified here. `insert_before` and `insert_after` parameters cannot both be specified.
#[serde(rename = "insert_before", skip_serializing_if = "Option::is_none")]
pub insert_before: Option<String>,
/// An id of an item in this portfolio. The new item will be added after the one specified here. `insert_before` and `insert_after` parameters cannot both be specified.
#[serde(rename = "insert_after", skip_serializing_if = "Option::is_none")]
pub insert_after: Option<String>,
}
impl PortfolioAddItemRequest {
pub fn new(item: String) -> PortfolioAddItemRequest {
PortfolioAddItemRequest {
item,
insert_before: None,
insert_after: None,
}
}
}