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

/// Next : Describe the reducibility (Can be Reduced ?) and the applicability (Can Inputs be Applied ?) for a given contract.

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Next {
    #[serde(rename = "applicable_inputs")]
    pub applicable_inputs: Box<crate::models::ApplicableInputs>,
    /// Indicates if a given contract can be reduced (apply []) or not.
    #[serde(rename = "can_reduce")]
    pub can_reduce: bool,
}

impl Next {
    /// Describe the reducibility (Can be Reduced ?) and the applicability (Can Inputs be Applied ?) for a given contract.
    pub fn new(applicable_inputs: crate::models::ApplicableInputs, can_reduce: bool) -> Next {
        Next {
            applicable_inputs: Box::new(applicable_inputs),
            can_reduce,
        }
    }
}