Coverage Report

Created: 2022-07-04 16:17

src/responses/recording.rs
Line
Count
Source (jump to first uncovered line)
1
//! Responses related to recording.
2
3
use serde::Deserialize;
4
use time::Duration;
5
6
/// Response value for [`crate::client::Recording::status`].
7
247
#[derive(
Debug0
,
D152
eserialize)]
Unexecuted instantiation: <obws::responses::recording::RecordStatus as core::fmt::Debug>::fmt
Unexecuted instantiation: <obws::responses::recording::RecordStatus as core::fmt::Debug>::fmt
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>::{closure#1}
<<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
7
19
#[derive(Debug, Deserialize)]
<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer>
Line
Count
Source
7
95
#[derive(Debug, Deserialize)]
<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
7
19
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>
<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error>
Line
Count
Source
7
95
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer>
Line
Count
Source
7
114
#[derive(Debug, 
D19
eserialize)]
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
<<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
7
19
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>::{closure#0}
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#1}
Unexecuted instantiation: <obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#0}
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#1}
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>::{closure#0}
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::__DeserializeWith as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::__DeserializeWith as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::RecordStatus as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
8
pub struct RecordStatus {
9
    /// Whether the output is active.
10
    #[serde(rename = "outputActive")]
11
    pub active: bool,
12
    /// Whether the output is paused.
13
    #[serde(rename = "outputPaused")]
14
    pub paused: bool,
15
    /// Current formatted time code string for the output.
16
    #[serde(rename = "outputTimecode", with = "crate::serde::duration_timecode")]
17
    pub timecode: Duration,
18
    /// Current duration in milliseconds for the output.
19
    #[serde(rename = "outputDuration", with = "crate::serde::duration_millis")]
20
    pub duration: Duration,
21
    /// Number of bytes sent by the output.
22
    #[serde(rename = "outputBytes")]
23
    pub bytes: u64,
24
}
25
26
6
#[derive(
Debug0
,
D4
eserialize)]
Unexecuted instantiation: <obws::responses::recording::OutputActive as core::fmt::Debug>::fmt
Unexecuted instantiation: <obws::responses::recording::OutputActive as core::fmt::Debug>::fmt
<<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer>
Line
Count
Source
26
2
#[derive(Debug, Deserialize)]
<<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer>
Line
Count
Source
26
4
#[derive(Debug, 
D2
eserialize)]
<<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error>
Line
Count
Source
26
2
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>
<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
26
2
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
27
pub(crate) struct OutputActive {
28
    /// New state of the stream output.
29
    #[serde(rename = "outputActive")]
30
    pub active: bool,
31
}
32
33
3
#[derive(
Debug0
,
D2
eserialize)]
Unexecuted instantiation: <obws::responses::recording::OutputStopped as core::fmt::Debug>::fmt
Unexecuted instantiation: <obws::responses::recording::OutputStopped as core::fmt::Debug>::fmt
<<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer>
Line
Count
Source
33
1
#[derive(Debug, Deserialize)]
<<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error>
Line
Count
Source
33
1
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>
<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
33
1
#[derive(Debug, Deserialize)]
<<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer>
Line
Count
Source
33
2
#[derive(Debug, 
D1
eserialize)]
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputStopped as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
34
pub(crate) struct OutputStopped {
35
    /// File name for the saved recording.
36
    #[serde(rename = "outputPath")]
37
    pub path: String,
38
}
39
40
6
#[derive(
Debug0
,
D4
eserialize)]
Unexecuted instantiation: <obws::responses::recording::OutputPaused as core::fmt::Debug>::fmt
Unexecuted instantiation: <obws::responses::recording::OutputPaused as core::fmt::Debug>::fmt
<<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer>
Line
Count
Source
40
4
#[derive(Debug, 
D2
eserialize)]
<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
40
2
#[derive(Debug, Deserialize)]
<<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error>
Line
Count
Source
40
2
#[derive(Debug, Deserialize)]
<<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer>
Line
Count
Source
40
2
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>
Unexecuted instantiation: <obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::recording::OutputPaused as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
41
pub(crate) struct OutputPaused {
42
    #[serde(rename = "outputPaused")]
43
    pub paused: bool,
44
}