deepl_openapi/models/
translate_document_200_response.rs

1/*
2 * DeepL API Documentation
3 *
4 * The DeepL API provides programmatic access to DeepL’s machine translation technology.
5 *
6 * The version of the OpenAPI document: 2.7.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct TranslateDocument200Response {
16    /// A unique ID assigned to the uploaded document and the translation process. Must be used when referring to this particular document in subsequent API requests.
17    #[serde(rename = "document_id", skip_serializing_if = "Option::is_none")]
18    pub document_id: Option<String>,
19    /// A unique key that is used to encrypt the uploaded document as well as the resulting translation on the server side. Must be provided with every subsequent API request regarding this particular document.
20    #[serde(rename = "document_key", skip_serializing_if = "Option::is_none")]
21    pub document_key: Option<String>,
22}
23
24impl TranslateDocument200Response {
25    pub fn new() -> TranslateDocument200Response {
26        TranslateDocument200Response {
27            document_id: None,
28            document_key: None,
29        }
30    }
31}
32
33