Skip to main content

openapi_service_fabric/models/
network_ref.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/// NetworkRef : Describes a network reference in a service.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NetworkRef {
17    /// Name of the network
18    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    /// A list of endpoints that are exposed on this network.
21    #[serde(rename = "endpointRefs", skip_serializing_if = "Option::is_none")]
22    pub endpoint_refs: Option<Vec<models::EndpointRef>>,
23}
24
25impl NetworkRef {
26    /// Describes a network reference in a service.
27    pub fn new() -> NetworkRef {
28        NetworkRef {
29            name: None,
30            endpoint_refs: None,
31        }
32    }
33}