Skip to main content

openapi_service_fabric/models/
node_deactivation_task_id.rs

1/*
2 * Service Fabric Client APIs
3 *
4 * Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services.
5 *
6 * The version of the OpenAPI document: 8.2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// NodeDeactivationTaskId : Identity of the task related to deactivation operation on the node.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodeDeactivationTaskId {
17    /// Value of the task id.
18    #[serde(rename = "Id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    #[serde(
21        rename = "NodeDeactivationTaskType",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub node_deactivation_task_type: Option<models::NodeDeactivationTaskType>,
25}
26
27impl NodeDeactivationTaskId {
28    /// Identity of the task related to deactivation operation on the node.
29    pub fn new() -> NodeDeactivationTaskId {
30        NodeDeactivationTaskId {
31            id: None,
32            node_deactivation_task_type: None,
33        }
34    }
35}