open_logistics/shiprocket/models/auth_credentials.rs
1/*
2 * Open Logistics — Shiprocket
3 *
4 * 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`.
5 *
6 * The version of the OpenAPI document: 0.3.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::shiprocket::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AuthCredentials {
16 #[serde(rename = "email")]
17 pub email: String,
18 #[serde(rename = "password")]
19 pub password: String,
20}
21
22impl AuthCredentials {
23 pub fn new(email: String, password: String) -> AuthCredentials {
24 AuthCredentials {
25 email,
26 password,
27 }
28 }
29}
30