ya_client_model/activity/
exe_script_command_state.rs

1/*
2 * Yagna Activity API
3 *
4 * It conforms with capability level 1 of the [Activity API specification](https://golem-network.gitbook.io/golem-internal-documentation-test/golem-activity-protocol/golem-activity-api).
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct ExeScriptCommandState {
15    #[serde(rename = "command")]
16    pub command: String,
17    #[serde(rename = "progress", skip_serializing_if = "Option::is_none")]
18    pub progress: Option<String>,
19    #[serde(rename = "params", skip_serializing_if = "Option::is_none")]
20    pub params: Option<Vec<String>>,
21}
22
23impl ExeScriptCommandState {
24    pub fn new(command: String) -> ExeScriptCommandState {
25        ExeScriptCommandState {
26            command,
27            progress: None,
28            params: None,
29        }
30    }
31}