redfish-codegen 0.3.1

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


/// A resource managed by a client.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ManagedResource {
    /// Indicates whether the subordinate resources of the managed resource are also managed by the registered client.
    #[serde(rename = "IncludesSubordinates")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub includes_subordinates: Option<bool>,
    /// The URI of the resource or resource collection managed by the registered client.
    #[serde(rename = "ManagedResourceURI")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub managed_resource_uri: Option<String>,
    /// Indicates whether the registered client expects to have exclusive access to the managed resource.
    #[serde(rename = "PreferExclusive")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub prefer_exclusive: Option<bool>,
}

impl crate::Metadata<'static> for ManagedResource {
    const JSON_SCHEMA: &'static str = "RegisteredClient.v1_1_0.json";
}