messaging_api_line/models/
get_message_content_transcoding_response.rs

1/*
2 * LINE Messaging API
3 *
4 * This document describes LINE Messaging API.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GetMessageContentTranscodingResponse : Transcoding response
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetMessageContentTranscodingResponse {
17    /// The preparation status. One of:  `processing`: Preparing to get content. `succeeded`: Ready to get the content. You can get the content sent by users. `failed`: Failed to prepare to get the content. 
18    #[serde(rename = "status")]
19    pub status: Status,
20}
21
22impl GetMessageContentTranscodingResponse {
23    /// Transcoding response
24    pub fn new(status: Status) -> GetMessageContentTranscodingResponse {
25        GetMessageContentTranscodingResponse {
26            status,
27        }
28    }
29}
30/// The preparation status. One of:  `processing`: Preparing to get content. `succeeded`: Ready to get the content. You can get the content sent by users. `failed`: Failed to prepare to get the content. 
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Status {
33    #[serde(rename = "processing")]
34    Processing,
35    #[serde(rename = "succeeded")]
36    Succeeded,
37    #[serde(rename = "failed")]
38    Failed,
39}
40
41impl Default for Status {
42    fn default() -> Status {
43        Self::Processing
44    }
45}
46