/*
* BOAVIZTAPI - DEMO
*
*
π― Retrieving the impacts of digital elements.
This is a quick demo, to see full documentation click here
Features
Bellow a list of all available features.
π Verbose
Verbose is an HTTP parameter. If set at true :
- Shows the impacts of each component
- Shows the value used for each attribute
\"attribute\": {\"value\": \"value\", \"unit\": \"unit\", \"status\": \"Status\", \"source\": \"Source\", \"min\":\"min\", \"max\":\"max\", \"significant_figures\":\"significant_figures\"}
π¨ Embedded
- Embedded impacts are the impacts occurring during raw material extraction, manufacture, distribution and end of life
- When end of life is not taken into account, we specified it in the
warnings
π Usage
Usage impacts are assessed by multiplying :
β² Duration
Usage impacts can be given as a router parameter, in hours.
If no duration is given, the impact is assess for the all life duration of the asset.
βοΈ Impact factors
β‘ Electrical consumption
βΊοΈ Given
- Electrical consumption can be given for one hour (average) \"usage\":{\"avg_power\": 1}.
π Modeled
- Electrical consumption can be retrieved from consumption profile using usage:{time_workload: 50}.
π Archetype
- In some cases, default electrical consumption can be taken from the archetype
π Auto-complete & π Archetype
The API will complete the missing attributes in a request with a completion function or with values taken from the archetype
specified in the route parameter.
β¬ Allocation
- Usage impacts are assessed on the duration given in route parameter
- Embedded impacts are allocated linearly on the duration given in parameter
embedded_impact = impact * (duration/life_duration)
If no duration is given, the life_duration (`hours_life_time
) of the asset is used.
*
* The version of the OpenAPI document: 1.3
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorkloadTime {
#[serde(rename = "time_percentage", skip_serializing_if = "Option::is_none")]
pub time_percentage: Option,
#[serde(rename = "load_percentage", skip_serializing_if = "Option::is_none")]
pub load_percentage: Option,
}
impl WorkloadTime {
pub fn new() -> WorkloadTime {
WorkloadTime {
time_percentage: None,
load_percentage: None,
}
}
}