amazon_spapi/models/data_kiosk_2023_11_15/get_document_response.rs
1/*
2 * Selling Partner API for Data Kiosk
3 *
4 * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
5 *
6 * The version of the OpenAPI document: 2023-11-15
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GetDocumentResponse : The response for the `getDocument` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetDocumentResponse {
17 /// The identifier for the Data Kiosk document. This identifier is unique only in combination with a selling partner account ID.
18 #[serde(rename = "documentId")]
19 pub document_id: String,
20 /// A presigned URL that can be used to retrieve the Data Kiosk document. This URL expires after 5 minutes. If the Data Kiosk document is compressed, the `Content-Encoding` header will indicate the compression algorithm. **Note:** Most HTTP clients are capable of automatically decompressing downloaded files based on the `Content-Encoding` header.
21 #[serde(rename = "documentUrl")]
22 pub document_url: String,
23}
24
25impl GetDocumentResponse {
26 /// The response for the `getDocument` operation.
27 pub fn new(document_id: String, document_url: String) -> GetDocumentResponse {
28 GetDocumentResponse {
29 document_id,
30 document_url,
31 }
32 }
33}
34