windmill_api/models/
list_log_files_200_response_inner.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.597.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ListLogFiles200ResponseInner {
16    #[serde(rename = "hostname")]
17    pub hostname: String,
18    #[serde(rename = "mode")]
19    pub mode: String,
20    #[serde(rename = "worker_group", skip_serializing_if = "Option::is_none")]
21    pub worker_group: Option<String>,
22    #[serde(rename = "log_ts")]
23    pub log_ts: String,
24    #[serde(rename = "file_path")]
25    pub file_path: String,
26    #[serde(rename = "ok_lines", skip_serializing_if = "Option::is_none")]
27    pub ok_lines: Option<i32>,
28    #[serde(rename = "err_lines", skip_serializing_if = "Option::is_none")]
29    pub err_lines: Option<i32>,
30    #[serde(rename = "json_fmt")]
31    pub json_fmt: bool,
32}
33
34impl ListLogFiles200ResponseInner {
35    pub fn new(hostname: String, mode: String, log_ts: String, file_path: String, json_fmt: bool) -> ListLogFiles200ResponseInner {
36        ListLogFiles200ResponseInner {
37            hostname,
38            mode,
39            worker_group: None,
40            log_ts,
41            file_path,
42            ok_lines: None,
43            err_lines: None,
44            json_fmt,
45        }
46    }
47}
48