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
 */

/// ChoiceInput : Make a choice in a contract

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChoiceInput {
    #[serde(rename = "for_choice_id")]
    pub for_choice_id: Box<crate::models::ChoiceId>,
    #[serde(rename = "input_that_chooses_num")]
    pub input_that_chooses_num: i32,
}

impl ChoiceInput {
    /// Make a choice in a contract
    pub fn new(for_choice_id: crate::models::ChoiceId, input_that_chooses_num: i32) -> ChoiceInput {
        ChoiceInput {
            for_choice_id: Box::new(for_choice_id),
            input_that_chooses_num,
        }
    }
}