Skip to content

Instantly share code, notes, and snippets.

@oherrala
Created October 29, 2019 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oherrala/39ca6b4c170cdee84adf74713cf14a1d to your computer and use it in GitHub Desktop.
Save oherrala/39ca6b4c170cdee84adf74713cf14a1d to your computer and use it in GitHub Desktop.
energiatili patch 1
diff --git a/energiatili-model/src/model.rs b/energiatili-model/src/model.rs
index 5727fd2..c07588e 100644
--- a/energiatili-model/src/model.rs
+++ b/energiatili-model/src/model.rs
@@ -29,11 +29,11 @@ pub struct Model {
pub hours: OneResolution,
pub days: OneResolution,
pub months: OneResolution,
pub years: OneResolution,
pub network_price_list: PriceList,
- pub sales_price_list: PriceList,
+ pub sales_price_list: Option<PriceList>,
}
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct OneResolution {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment