open-logistics 0.3.0

Rust client for the Open Logistics Shiprocket and Delhivery APIs.
Documentation
/*
 * Open Logistics — Shiprocket
 *
 * OpenAPI description of the Shiprocket endpoints wrapped by `open-logistics`.  Source of truth for generated Python and Rust clients. Operation IDs and schema field names are intentionally snake_case so every language exposes the same names.  Two TypeScript methods (`checkServiceability` and `calculateRates`) call `GET /courier/serviceability`; OpenAPI permits one operation per path + method, so this spec exposes a single `courier_serviceability` operation. Language facades may alias it as `calculate_rates`. 
 *
 * The version of the OpenAPI document: 0.3.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::shiprocket::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TrackActivity {
    #[serde(rename = "date")]
    pub date: String,
    #[serde(rename = "activity")]
    pub activity: String,
    #[serde(rename = "location")]
    pub location: String,
    #[serde(rename = "sr-status")]
    pub sr_status: String,
    #[serde(rename = "sr-status-label")]
    pub sr_status_label: String,
}

impl TrackActivity {
    pub fn new(date: String, activity: String, location: String, sr_status: String, sr_status_label: String) -> TrackActivity {
        TrackActivity {
            date,
            activity,
            location,
            sr_status,
            sr_status_label,
        }
    }
}