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

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

/// Experimental - TaskHandle is based on drivers.TaskHandle and used by remote
/// task drivers to migrate task handles between allocations.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct TaskHandle {
    #[serde(rename = "Version")]
    pub version: i64,

    #[serde(
        rename = "DriverState",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub driver_state: Vec<u8>,
}
