fireblocks_sdk/models/
media_entity_response.rs

1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MediaEntityResponse {
16    /// Cached accessible URL
17    #[serde(rename = "url")]
18    pub url: String,
19    /// Media type
20    #[serde(rename = "contentType")]
21    pub content_type: ContentType,
22}
23
24impl MediaEntityResponse {
25    pub fn new(url: String, content_type: ContentType) -> MediaEntityResponse {
26        MediaEntityResponse { url, content_type }
27    }
28}
29/// Media type
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum ContentType {
32    #[serde(rename = "IMAGE")]
33    Image,
34    #[serde(rename = "VIDEO")]
35    Video,
36    #[serde(rename = "ANIMATION")]
37    Animation,
38    #[serde(rename = "THREE_D")]
39    ThreeD,
40    #[serde(rename = "TEXT")]
41    Text,
42    #[serde(rename = "GIF")]
43    Gif,
44    #[serde(rename = "UNKNOWN_TYPE")]
45    UnknownType,
46    #[serde(rename = "SVG")]
47    Svg,
48    #[serde(rename = "AUDIO")]
49    Audio,
50}
51
52impl Default for ContentType {
53    fn default() -> ContentType {
54        Self::Image
55    }
56}