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)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Service {
    /// Type of resource.  Value is `Singleton` for all cases defined by Redfish.
    #[derivative(Default(value = "\"Singleton\".to_string()"))]
    pub kind: String,
    /// User-friendly resource name of the resource.
    pub name: String,
    /// Relative URL for the top-level resource.
    pub url: String,
}

impl crate::Metadata<'static> for Service {
    const JSON_SCHEMA: &'static str = "odata.v4_0_5.json";
}