Skip to main content

line_bot_sdk_messaging_api/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 { status }
26    }
27}
28/// 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.
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum Status {
31    #[serde(rename = "processing")]
32    Processing,
33    #[serde(rename = "succeeded")]
34    Succeeded,
35    #[serde(rename = "failed")]
36    Failed,
37}
38
39impl Default for Status {
40    fn default() -> Status {
41        Self::Processing
42    }
43}