amazon_spapi/models/shipping_v2/
accessibility_attributes.rs

1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AccessibilityAttributes : Defines the accessibility details of the access point.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AccessibilityAttributes {
17    /// The approximate distance of access point from input postalCode's centroid.
18    #[serde(rename = "distance", skip_serializing_if = "Option::is_none")]
19    pub distance: Option<String>,
20    /// The approximate (static) drive time from input postal code's centroid.
21    #[serde(rename = "driveTime", skip_serializing_if = "Option::is_none")]
22    pub drive_time: Option<i32>,
23}
24
25impl AccessibilityAttributes {
26    /// Defines the accessibility details of the access point.
27    pub fn new() -> AccessibilityAttributes {
28        AccessibilityAttributes {
29            distance: None,
30            drive_time: None,
31        }
32    }
33}
34