redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum EntityRole {
    /// The entity sends commands, messages, or other types of requests to other entities on the fabric, but cannot receive commands from other entities.
    Initiator,
    /// The entity receives commands, messages, or other types of requests from other entities on the fabric, but cannot send commands to other entities.
    Target,
    /// The entity can both send and receive commands, messages, and other requests to or from other entities on the fabric.
    Both,
}

#[allow(clippy::derivable_impls)]
impl Default for EntityRole {
     fn default() -> EntityRole {
        EntityRole::Initiator
     }
}

impl crate::Metadata<'static> for EntityRole {
    const JSON_SCHEMA: &'static str = "Endpoint.v1_8_0.json";
}