Skip to main content

openapi_service_fabric/models/
probe_exec.rs

1/*
2 * Service Fabric Client APIs
3 *
4 * Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services.
5 *
6 * The version of the OpenAPI document: 8.2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ProbeExec : Exec command to run inside the container.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ProbeExec {
17    /// Comma separated command to run inside the container for example \"sh, -c, echo hello world\".
18    #[serde(rename = "command")]
19    pub command: String,
20}
21
22impl ProbeExec {
23    /// Exec command to run inside the container.
24    pub fn new(command: String) -> ProbeExec {
25        ProbeExec { command }
26    }
27}