amazon_spapi/models/feeds_2021_06_30/create_feed_document_response.rs
1/*
2 * Selling Partner API for Feeds
3 *
4 * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.
5 *
6 * The version of the OpenAPI document: 2021-06-30
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CreateFeedDocumentResponse : Information required to upload a feed document's contents.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateFeedDocumentResponse {
17 /// The identifier of the feed document.
18 #[serde(rename = "feedDocumentId")]
19 pub feed_document_id: String,
20 /// The presigned URL for uploading the feed contents. This URL expires after 5 minutes.
21 #[serde(rename = "url")]
22 pub url: String,
23}
24
25impl CreateFeedDocumentResponse {
26 /// Information required to upload a feed document's contents.
27 pub fn new(feed_document_id: String, url: String) -> CreateFeedDocumentResponse {
28 CreateFeedDocumentResponse {
29 feed_document_id,
30 url,
31 }
32 }
33}
34