Skip to main content

openapi_service_fabric/models/
node_result.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/// NodeResult : Contains information about a node that was targeted by a user-induced operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodeResult {
17    /// The name of a Service Fabric node.
18    #[serde(rename = "NodeName", skip_serializing_if = "Option::is_none")]
19    pub node_name: Option<String>,
20    /// The node instance id.
21    #[serde(rename = "NodeInstanceId", skip_serializing_if = "Option::is_none")]
22    pub node_instance_id: Option<String>,
23}
24
25impl NodeResult {
26    /// Contains information about a node that was targeted by a user-induced operation.
27    pub fn new() -> NodeResult {
28        NodeResult {
29            node_name: None,
30            node_instance_id: None,
31        }
32    }
33}