jira_api_v2/models/
time_tracking_provider.rs

1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TimeTrackingProvider : Details about the time tracking provider.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TimeTrackingProvider {
17    /// The key for the time tracking provider. For example, *JIRA*.
18    #[serde(rename = "key")]
19    pub key: String,
20    /// The name of the time tracking provider. For example, *JIRA provided time tracking*.
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// The URL of the configuration page for the time tracking provider app. For example, *_/example/config/url*. This property is only returned if the `adminPageKey` property is set in the module descriptor of the time tracking provider app.
24    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
25    pub url: Option<String>,
26}
27
28impl TimeTrackingProvider {
29    /// Details about the time tracking provider.
30    pub fn new(key: String) -> TimeTrackingProvider {
31        TimeTrackingProvider {
32            key,
33            name: None,
34            url: None,
35        }
36    }
37}
38