Skip to main content

openapi_service_fabric/models/
application_backup_entity.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ApplicationBackupEntity {
16    #[serde(rename = "EntityKind")]
17    pub entity_kind: models::BackupEntityKind,
18    /// The name of the application, including the 'fabric:' URI scheme.
19    #[serde(rename = "ApplicationName", skip_serializing_if = "Option::is_none")]
20    pub application_name: Option<String>,
21}
22
23impl ApplicationBackupEntity {
24    pub fn new(entity_kind: models::BackupEntityKind) -> ApplicationBackupEntity {
25        ApplicationBackupEntity {
26            entity_kind,
27            application_name: None,
28        }
29    }
30}