babelforce-manager-sdk 0.42.1

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * task-automation API
 *
 * task-automation engine to automate and customize web based integration processes
 *
 * The version of the OpenAPI document: 3.63.10
 * Contact: support@babelforce.com
 * Generated by: https://openapi-generator.tech
 */

use crate::gen::task_automation::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaskJournalEntry {
    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
    pub state: Option<models::TaskState>,
    #[serde(rename = "meta", skip_serializing_if = "Option::is_none")]
    pub meta: Option<serde_json::Value>,
    /// Timestamp in milliseconds UTC
    #[serde(rename = "at", skip_serializing_if = "Option::is_none")]
    pub at: Option<i64>,
}

impl TaskJournalEntry {
    pub fn new() -> TaskJournalEntry {
        TaskJournalEntry {
            state: None,
            meta: None,
            at: None,
        }
    }
}