amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Automotive.
 *
 * The Selling Partner API for Automotive provides programmatic access to information needed by selling partners to provide compatibility information about their listed products.
 *
 * The version of the OpenAPI document: 2024-11-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// VehiclesResponse : Get paginated list of vehicle from Amazon's catalog
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct VehiclesResponse {
    #[serde(rename = "pagination", skip_serializing_if = "Option::is_none")]
    pub pagination: Option<Box<models::vehicles_2024_11_01::Pagination>>,
    /// List of vehicles from Amazon's catalog.
    #[serde(rename = "vehicles")]
    pub vehicles: Vec<models::vehicles_2024_11_01::Vehicle>,
}

impl VehiclesResponse {
    /// Get paginated list of vehicle from Amazon's catalog
    pub fn new(vehicles: Vec<models::vehicles_2024_11_01::Vehicle>) -> VehiclesResponse {
        VehiclesResponse {
            pagination: None,
            vehicles,
        }
    }
}