Skip to main content

gitbundle_sdk/models/
live_log_line.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LiveLogLine {
17    #[serde(
18        rename = "command",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub command: Option<Option<String>>,
24    #[serde(rename = "index")]
25    pub index: i64,
26    #[serde(rename = "out")]
27    pub out: String,
28    #[serde(rename = "pos")]
29    pub pos: i64,
30    #[serde(rename = "time")]
31    pub time: i64,
32}
33
34impl LiveLogLine {
35    pub fn new(index: i64, out: String, pos: i64, time: i64) -> LiveLogLine {
36        LiveLogLine {
37            command: None,
38            index,
39            out,
40            pos,
41            time,
42        }
43    }
44}