pub struct ResourceManagerDetails {Show 13 fields
pub message_id: Id,
pub resource_id: Id,
pub name: Option<String>,
pub roles: Vec<Role>,
pub manufacturer: Option<String>,
pub model: Option<String>,
pub serial_number: Option<String>,
pub firmware_version: Option<String>,
pub instruction_processing_delay: Duration,
pub available_control_types: Vec<ControlType>,
pub currency: Option<Currency>,
pub provides_forecast: bool,
pub provides_power_measurement_types: Vec<CommodityQuantity>,
}Expand description
Everything static about a resource, and which control types it can be driven in.
Fields§
§message_id: IdThis message’s identifier.
resource_id: IdIdentifies the resource. Unique within the scope of the CEM.
name: Option<String>A human-readable name, for user interfaces.
roles: Vec<Role>What the resource does with each commodity. One to three roles.
manufacturer: Option<String>The manufacturer’s name.
model: Option<String>The model name.
serial_number: Option<String>The serial number.
firmware_version: Option<String>The firmware version.
instruction_processing_delay: DurationHow long the resource takes, on average, to process and execute an instruction.
available_control_types: Vec<ControlType>The control types this Resource Manager supports. The CEM selects one of these.
currency: Option<Currency>The currency every cost is expressed in. Mandatory if any cost is published.
provides_forecast: boolWhether this Resource Manager can send a PowerForecast.
provides_power_measurement_types: Vec<CommodityQuantity>Which quantities it can measure. A PowerMeasurement may only use these.
Implementations§
Source§impl ResourceManagerDetails
impl ResourceManagerDetails
Sourcepub fn builder() -> ResourceManagerDetailsBuilder
pub fn builder() -> ResourceManagerDetailsBuilder
Create an instance of ResourceManagerDetails using the builder syntax
Trait Implementations§
Source§impl Clone for ResourceManagerDetails
impl Clone for ResourceManagerDetails
Source§fn clone(&self) -> ResourceManagerDetails
fn clone(&self) -> ResourceManagerDetails
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more