Skip to main content

openapi_service_fabric/models/
node_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/// NodeId : An internal ID used by Service Fabric to uniquely identify a node. Node Id is deterministically generated from node name.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodeId {
17    /// Value of the node Id. This is a 128 bit integer.
18    #[serde(rename = "Id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20}
21
22impl NodeId {
23    /// An internal ID used by Service Fabric to uniquely identify a node. Node Id is deterministically generated from node name.
24    pub fn new() -> NodeId {
25        NodeId { id: None }
26    }
27}