marlowe_client 0.0.5

HTTP client for the Marlowe Runtime REST API
Documentation
/*
 * Marlowe Runtime REST API
 *
 * REST API for Marlowe Runtime
 *
 * The version of the OpenAPI document: 0.0.5.1
 *
 * Generated by: https://openapi-generator.tech
 */

/// LetObject : Bind a value to a name within the scope of a sub-contract.

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct LetObject {
    #[serde(rename = "be")]
    pub be: Box<crate::models::ValueObject>,
    #[serde(rename = "let")]
    pub r#let: String,
    #[serde(rename = "then")]
    pub then: Box<crate::models::ContractObject>,
}

impl LetObject {
    /// Bind a value to a name within the scope of a sub-contract.
    pub fn new(
        be: crate::models::ValueObject,
        r#let: String,
        then: crate::models::ContractObject,
    ) -> LetObject {
        LetObject {
            be: Box::new(be),
            r#let,
            then: Box::new(then),
        }
    }
}