/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// StreamFrame is used to frame data of a file when streaming
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct StreamFrame {
    #[serde(rename = "Offset", skip_serializing_if = "Option::is_none")]
    pub offset: Option<i64>,

    #[serde(rename = "Data", skip_serializing_if = "Option::is_none")]
    pub data: Option<Vec<u8>>,

    #[serde(rename = "File", skip_serializing_if = "Option::is_none")]
    pub file: Option<String>,

    #[serde(rename = "FileEvent", skip_serializing_if = "Option::is_none")]
    pub file_event: Option<String>,
}
