ya_client_model/activity/exe_script_request.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 ExeScriptRequest {
15 #[serde(rename = "text")]
16 pub text: String,
17}
18
19impl ExeScriptRequest {
20 pub fn new(text: String) -> ExeScriptRequest {
21 ExeScriptRequest { text }
22 }
23}