marlowe_client/models/
if_value.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct IfValue {
13 #[serde(rename = "else")]
14 pub r#else: Box<crate::models::Value>,
15 #[serde(rename = "if")]
16 pub r#if: Box<crate::models::Observation>,
17 #[serde(rename = "then")]
18 pub then: Box<crate::models::Value>,
19}
20
21impl IfValue {
22 pub fn new(
23 r#else: crate::models::Value,
24 r#if: crate::models::Observation,
25 then: crate::models::Value,
26 ) -> IfValue {
27 IfValue {
28 r#else: Box::new(r#else),
29 r#if: Box::new(r#if),
30 then: Box::new(then),
31 }
32 }
33}