You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
obws/src/responses/sources.rs

23 lines
735 B
Rust

//! Responses related to sources.
use serde::{Deserialize, Serialize};
/// Response value for [`crate::client::Sources::active`].
#[derive(Clone, Debug, Default, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub struct SourceActive {
/// Whether the source is showing in program.
#[serde(rename = "videoActive")]
pub active: bool,
/// Whether the source is showing in the UI (preview, projector, properties).
#[serde(rename = "videoShowing")]
pub showing: bool,
}
/// Response value for [`crate::client::Sources::get_screenshot`].
#[derive(Debug, Deserialize)]
pub(crate) struct ImageData {
/// Base64-encoded screenshot.
#[serde(rename = "imageData")]
pub image_data: String,
}