Skip to main content

openapi_service_fabric/models/
replicator_status.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/// ReplicatorStatus : Represents a base class for primary or secondary replicator status. Contains information about the service fabric replicator like the replication/copy queue utilization, last acknowledgement received timestamp, etc.
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16#[serde(tag = "Kind")]
17pub enum ReplicatorStatus {
18    #[serde(rename = "PrimaryReplicatorStatus")]
19    PrimaryReplicatorStatus {},
20    #[serde(rename = "SecondaryActiveReplicatorStatus")]
21    SecondaryActiveReplicatorStatus {},
22    #[serde(rename = "SecondaryIdleReplicatorStatus")]
23    SecondaryIdleReplicatorStatus {},
24    #[serde(rename = "SecondaryReplicatorStatus")]
25    SecondaryReplicatorStatus {},
26}
27
28impl Default for ReplicatorStatus {
29    fn default() -> Self {
30        Self::PrimaryReplicatorStatus {}
31    }
32}