Coverage Report

Created: 2022-07-04 16:17

src/responses/config.rs
Line
Count
Source (jump to first uncovered line)
1
//! Responses related to the OBS configuration.
2
3
use serde::Deserialize;
4
5
/// Response value for [`crate::client::Config::video_settings`].
6
13
#[derive(
Debug0
,
D6
ese
rializ7
e)]
Unexecuted instantiation: <obws::responses::config::VideoSettings as core::fmt::Debug>::fmt
Unexecuted instantiation: <obws::responses::config::VideoSettings as core::fmt::Debug>::fmt
<<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer>
Line
Count
Source
6
7
#[derive(Debug, Deserialize)]
<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
6
1
#[derive(Debug, Deserialize)]
<<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer>
Line
Count
Source
6
6
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>
<<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error>
Line
Count
Source
6
6
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::config::VideoSettings as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
7
pub struct VideoSettings {
8
    /// Numerator of the fractional FPS value.
9
    #[serde(rename = "fpsNumerator")]
10
    pub fps_numerator: u32,
11
    /// Denominator of the fractional FPS value.
12
    #[serde(rename = "fpsDenominator")]
13
    pub fps_denominator: u32,
14
    /// Width of the base (canvas) resolution in pixels.
15
    #[serde(rename = "baseWidth")]
16
    pub base_width: u32,
17
    /// Height of the base (canvas) resolution in pixels.
18
    #[serde(rename = "baseHeight")]
19
    pub base_height: u32,
20
    /// Width of the output resolution in pixels.
21
    #[serde(rename = "outputWidth")]
22
    pub output_width: u32,
23
    /// Height of the output resolution in pixels.
24
    #[serde(rename = "outputHeight")]
25
    pub output_height: u32,
26
}
27
28
/// Response value for [`crate::client::Config::stream_service_settings`].
29
5
#[derive(
Debug0
,
D2
ese
rializ0
e)]
Unexecuted instantiation: <obws::responses::config::StreamServiceSettings<_> as core::fmt::Debug>::fmt
Unexecuted instantiation: <obws::responses::config::StreamServiceSettings<_> as core::fmt::Debug>::fmt
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Visitor<serde_json::value::Value> as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Visitor<serde_json::value::Value> as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Visitor<serde_json::value::Value> as serde::de::Visitor>::expecting
<<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer>
Line
Count
Source
29
2
#[derive(Debug, Deserialize)]
<<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error>
Line
Count
Source
29
2
#[derive(Debug, Deserialize)]
<obws::responses::config::StreamServiceSettings<serde_json::value::Value> as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
29
1
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Visitor<_> as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Visitor<_> as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Visitor<_> as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Visitor<_> as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Visitor<_> as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Visitor<_> as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::config::StreamServiceSettings<_> as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
30
pub struct StreamServiceSettings<T> {
31
    /// Stream service type, like `rtmp_custom` or `rtmp_common`.
32
    #[serde(rename = "streamServiceType")]
33
    pub r#type: String,
34
    /// Stream service settings.
35
    #[serde(rename = "streamServiceSettings")]
36
    pub settings: T,
37
}
38
39
3
#[derive(
Debug0
,
D2
eserialize)]
Unexecuted instantiation: <obws::responses::config::RecordDirectory as core::fmt::Debug>::fmt
Unexecuted instantiation: <obws::responses::config::RecordDirectory as core::fmt::Debug>::fmt
<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
39
1
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>
<<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer>
Line
Count
Source
39
1
#[derive(Debug, Deserialize)]
<<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer>
Line
Count
Source
39
2
#[derive(Debug, 
D1
eserialize)]
<<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error>
Line
Count
Source
39
1
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::config::RecordDirectory as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
40
pub(crate) struct RecordDirectory {
41
    /// Output directory.
42
    #[serde(rename = "recordDirectory")]
43
    pub record_directory: String,
44
}