Coverage Report

Created: 2022-07-04 16:17

src/responses/sources.rs
Line
Count
Source (jump to first uncovered line)
1
//! Responses related to sources.
2
3
use serde::Deserialize;
4
5
/// Response value for [`crate::client::Sources::active`].
6
5
#[derive(
Debug0
,
D3
eserialize)]
Unexecuted instantiation: <obws::responses::sources::SourceActive as core::fmt::Debug>::fmt
Unexecuted instantiation: <obws::responses::sources::SourceActive as core::fmt::Debug>::fmt
<<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer>
Line
Count
Source
6
2
#[derive(Debug, Deserialize)]
<<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error>
Line
Count
Source
6
2
#[derive(Debug, Deserialize)]
<<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer>
Line
Count
Source
6
3
#[derive(Debug, 
D1
eserialize)]
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>
<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
6
1
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::sources::SourceActive as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
7
pub struct SourceActive {
8
    /// Whether the source is showing in program.
9
    #[serde(rename = "videoActive")]
10
    pub active: bool,
11
    /// Whether the source is showing in the UI (preview, projector, properties).
12
    #[serde(rename = "videoShowing")]
13
    pub showing: bool,
14
}
15
16
/// Response value for [`crate::client::Sources::get_screenshot`].
17
3
#[derive(
Debug0
,
D2
eserialize)]
Unexecuted instantiation: <obws::responses::sources::ImageData as core::fmt::Debug>::fmt
Unexecuted instantiation: <obws::responses::sources::ImageData as core::fmt::Debug>::fmt
<<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<serde_json::error::Error>
Line
Count
Source
17
1
#[derive(Debug, Deserialize)]
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<&mut serde_json::value::de::SeqDeserializer>
<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::<serde_json::value::Value>
Line
Count
Source
17
1
#[derive(Debug, Deserialize)]
<<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<serde_json::value::de::MapKeyDeserializer>
Line
Count
Source
17
1
#[derive(Debug, Deserialize)]
<<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<&mut serde_json::value::de::MapDeserializer>
Line
Count
Source
17
2
#[derive(Debug, 
D1
eserialize)]
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_u64::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Field as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_map::<_>
Unexecuted instantiation: <obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_bytes::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::expecting
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::visit_str::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__Visitor as serde::de::Visitor>::visit_seq::<_>
Unexecuted instantiation: <<obws::responses::sources::ImageData as serde::de::Deserialize>::deserialize::__FieldVisitor as serde::de::Visitor>::expecting
18
pub(crate) struct ImageData {
19
    /// Base64-encoded screenshot.
20
    #[serde(rename = "imageData")]
21
    pub image_data: String,
22
}