redfish_codegen/models/storage_replica_info/v1_4_0/
replica_read_only_access.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// Values of ReplicaReadOnlyAccess specify whether the source, the target, or both elements are read only to the host.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum ReplicaReadOnlyAccess {
7    /// The source element shall be read-only to the host.
8    SourceElement,
9    /// The replica element shall be read-only to the host.
10    ReplicaElement,
11    /// Both the source and the target elements shall be read only to the host.
12    Both,
13}
14
15#[allow(clippy::derivable_impls)]
16impl Default for ReplicaReadOnlyAccess {
17     fn default() -> ReplicaReadOnlyAccess {
18        ReplicaReadOnlyAccess::SourceElement
19     }
20}
21
22impl crate::Metadata<'static> for ReplicaReadOnlyAccess {
23    const JSON_SCHEMA: &'static str = "StorageReplicaInfo.v1_4_0.json";
24}