Coverage Report

Created: 2022-07-04 16:17

src/requests/scene_collections.rs
Line
Count
Source
1
//! Requests related to scene collections.
2
3
use serde::Serialize;
4
5
6
#[derive(
S4
eri
aliz2
e)]
Unexecuted instantiation: <<obws::requests::scene_collections::Request as serde::ser::Serialize>::serialize::__AdjacentlyTagged as serde::ser::Serialize>::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec<u8>>>
<<obws::requests::scene_collections::Request as serde::ser::Serialize>::serialize::__AdjacentlyTagged as serde::ser::Serialize>::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec<u8>>>
Line
Count
Source
5
2
#[derive(Serialize)]
Unexecuted instantiation: <obws::requests::scene_collections::Request as serde::ser::Serialize>::serialize::<&mut serde_json::ser::Serializer<&mut alloc::vec::Vec<u8>>>
<obws::requests::scene_collections::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
4
#[derive(Serialize)]
Unexecuted instantiation: <obws::requests::scene_collections::Request as serde::ser::Serialize>::serialize::<_>
Unexecuted instantiation: <<obws::requests::scene_collections::Request as serde::ser::Serialize>::serialize::__AdjacentlyTagged as serde::ser::Serialize>::serialize::<_>
Unexecuted instantiation: <<obws::requests::scene_collections::Request as serde::ser::Serialize>::serialize::__AdjacentlyTagged as serde::ser::Serialize>::serialize::<_>
Unexecuted instantiation: <<obws::requests::scene_collections::Request as serde::ser::Serialize>::serialize::__AdjacentlyTagged as serde::ser::Serialize>::serialize::<_>
Unexecuted instantiation: <<obws::requests::scene_collections::Request as serde::ser::Serialize>::serialize::__AdjacentlyTagged as serde::ser::Serialize>::serialize::<_>
Unexecuted instantiation: <obws::requests::scene_collections::Request as serde::ser::Serialize>::serialize::<_>
6
#[serde(tag = "requestType", content = "requestData")]
7
pub(crate) enum Request<'a> {
8
    #[serde(rename = "GetSceneCollectionList")]
9
    List,
10
    #[serde(rename = "SetCurrentSceneCollection")]
11
    SetCurrent {
12
        /// Name of the scene collection to switch to.
13
        #[serde(rename = "sceneCollectionName")]
14
        name: &'a str,
15
    },
16
    #[serde(rename = "CreateSceneCollection")]
17
    Create {
18
        /// Name for the new scene collection.
19
        #[serde(rename = "sceneCollectionName")]
20
        name: &'a str,
21
    },
22
}
23
24
impl<'a> From<Request<'a>> for super::RequestType<'a> {
25
4
    fn from(value: Request<'a>) -> Self {
26
4
        super::RequestType::SceneCollections(value)
27
4
    }
<obws::requests::RequestType as core::convert::From<obws::requests::scene_collections::Request>>::from
Line
Count
Source
25
4
    fn from(value: Request<'a>) -> Self {
26
4
        super::RequestType::SceneCollections(value)
27
4
    }
Unexecuted instantiation: <obws::requests::RequestType as core::convert::From<obws::requests::scene_collections::Request>>::from
28
}