babelforce-manager-sdk 0.46.0

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * Manager API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0-dev
 * Contact: support@babelforce.com
 * Generated by: https://openapi-generator.tech
 */

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

/// UserCustomerCustomerApisStream : Stream API access information
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserCustomerCustomerApisStream {
    /// Push API token
    #[serde(rename = "token")]
    pub token: String,
    #[serde(rename = "dateCreated")]
    pub date_created: chrono::DateTime<chrono::FixedOffset>,
    #[serde(rename = "lastUpdated")]
    pub last_updated: chrono::DateTime<chrono::FixedOffset>,
}

impl UserCustomerCustomerApisStream {
    /// Stream API access information
    pub fn new(
        token: String,
        date_created: chrono::DateTime<chrono::FixedOffset>,
        last_updated: chrono::DateTime<chrono::FixedOffset>,
    ) -> UserCustomerCustomerApisStream {
        UserCustomerCustomerApisStream {
            token,
            date_created,
            last_updated,
        }
    }
}