babelforce-manager-sdk 0.42.3

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 TaskJournal {
    #[serde(rename = "journal", skip_serializing_if = "Option::is_none")]
    pub journal: Option<Vec<models::TaskJournalEntry>>,
    /// a unique identifier
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Timestamp in milliseconds UTC
    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i64>,
    /// Timestamp in milliseconds UTC
    #[serde(rename = "scheduled_at", skip_serializing_if = "Option::is_none")]
    pub scheduled_at: Option<i64>,
    /// Timestamp in milliseconds UTC
    #[serde(rename = "total_duration", skip_serializing_if = "Option::is_none")]
    pub total_duration: Option<i64>,
    /// Timestamp in milliseconds UTC
    #[serde(rename = "accept_duration", skip_serializing_if = "Option::is_none")]
    pub accept_duration: Option<i64>,
}

impl TaskJournal {
    pub fn new() -> TaskJournal {
        TaskJournal {
            journal: None,
            id: None,
            created_at: None,
            scheduled_at: None,
            total_duration: None,
            accept_duration: None,
        }
    }
}