redfish_codegen/models/endpoint/v1_8_0/entity_role.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum EntityRole {
6 /// The entity sends commands, messages, or other types of requests to other entities on the fabric, but cannot receive commands from other entities.
7 Initiator,
8 /// The entity receives commands, messages, or other types of requests from other entities on the fabric, but cannot send commands to other entities.
9 Target,
10 /// The entity can both send and receive commands, messages, and other requests to or from other entities on the fabric.
11 Both,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for EntityRole {
16 fn default() -> EntityRole {
17 EntityRole::Initiator
18 }
19}
20
21impl crate::Metadata<'static> for EntityRole {
22 const JSON_SCHEMA: &'static str = "Endpoint.v1_8_0.json";
23}