babelforce-manager-sdk 0.42.1

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};

/// BusinessHourRangeBody : A weekly time range (no id; ranges are replaced as a set)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BusinessHourRangeBody {
    #[serde(rename = "start")]
    pub start: Box<models::BusinessHourRangeBound>,
    #[serde(rename = "end")]
    pub end: Box<models::BusinessHourRangeBound>,
}

impl BusinessHourRangeBody {
    /// A weekly time range (no id; ranges are replaced as a set)
    pub fn new(
        start: models::BusinessHourRangeBound,
        end: models::BusinessHourRangeBound,
    ) -> BusinessHourRangeBody {
        BusinessHourRangeBody {
            start: Box::new(start),
            end: Box::new(end),
        }
    }
}