easy_ffprobe/
attachment_stream.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
/// Tags specific for attachments
pub struct AttachmentTags {
    pub filename: String,
    pub mimetype: String,
    pub title: Option<String>,
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "__internal_deny_unknown_fields", serde(deny_unknown_fields))]
/// Stream of type attachment
pub struct AttachmentStream {
    /// Duration of the video stream in timestamp units.
    pub duration_ts: u64,
    /// Metadata tags associated with the video stream.
    pub tags: AttachmentTags,
    /// Long name of the codec used for the video stream.
    pub codec_long_name: Option<String>,
    /// Short name of the codec used for the video stream.
    /// Example: h264
    pub codec_name: Option<String>,
    #[cfg(feature = "__internal_deny_unknown_fields")]
    codec_type: serde_json::Value,
    #[cfg(feature = "__internal_deny_unknown_fields")]
    start_time: Option<serde_json::Value>,
    #[cfg(feature = "__internal_deny_unknown_fields")]
    duration: Option<serde_json::Value>,
}