amazon_spapi/models/customer_feedback_2024_06_01/browse_node_response.rs
1/*
2 * The Selling Partner API for CustomerFeedback
3 *
4 * The Selling Partner API for Customer Feedback (Customer Feedback API) provides information about customer reviews and returns at both the item and browse node level.
5 *
6 * The version of the OpenAPI document: 2024-06-01
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BrowseNodeResponse : The response for the `getItemBrowseNode` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BrowseNodeResponse {
17 /// A browse node id is the unique identifier of a given browse node. A browse node is a location in a browse tree that is used for navigation, product classification, and website content.
18 #[serde(rename = "browseNodeId")]
19 pub browse_node_id: String,
20 /// The display name of the browse node as visible on the Amazon retail website.
21 #[serde(rename = "displayName")]
22 pub display_name: String,
23}
24
25impl BrowseNodeResponse {
26 /// The response for the `getItemBrowseNode` operation.
27 pub fn new(browse_node_id: String, display_name: String) -> BrowseNodeResponse {
28 BrowseNodeResponse {
29 browse_node_id,
30 display_name,
31 }
32 }
33}
34