Coverage Report

Created: 2022-07-04 16:17

src/requests/recording.rs
Line
Count
Source
1
//! Requests related to recording.
2
3
use serde::Serialize;
4
5
27
#[derive(Serialize)]
Unexecuted instantiation: <obws::requests::recording::Request as serde::ser::Serialize>::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec<u8>>>
<obws::requests::recording::Request as serde::ser::Serialize>::serialize::<serde::__private::ser::FlatMapSerializer<serde_json::ser::Compound<&mut alloc::vec::Vec<u8>, serde_json::ser::CompactFormatter>>>
Line
Count
Source
5
27
#[derive(Serialize)]
Unexecuted instantiation: <obws::requests::recording::Request as serde::ser::Serialize>::serialize::<_>
Unexecuted instantiation: <obws::requests::recording::Request as serde::ser::Serialize>::serialize::<_>
6
#[serde(tag = "requestType", content = "requestData")]
7
pub(crate) enum Request {
8
    #[serde(rename = "GetRecordStatus")]
9
    Status,
10
    #[serde(rename = "ToggleRecord")]
11
    Toggle,
12
    #[serde(rename = "StartRecord")]
13
    Start,
14
    #[serde(rename = "StopRecord")]
15
    Stop,
16
    #[serde(rename = "ToggleRecordPause")]
17
    TogglePause,
18
    #[serde(rename = "PauseRecord")]
19
    Pause,
20
    #[serde(rename = "ResumeRecord")]
21
    Resume,
22
}
23
24
impl<'a> From<Request> for super::RequestType<'a> {
25
27
    fn from(value: Request) -> Self {
26
27
        super::RequestType::Recording(value)
27
27
    }
<obws::requests::RequestType as core::convert::From<obws::requests::recording::Request>>::from
Line
Count
Source
25
27
    fn from(value: Request) -> Self {
26
27
        super::RequestType::Recording(value)
27
27
    }
Unexecuted instantiation: <obws::requests::RequestType as core::convert::From<obws::requests::recording::Request>>::from
28
}