mirror of https://github.com/dnaka91/obws
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.
25 lines
766 B
Rust
25 lines
766 B
Rust
//! Responses related to sources.
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
pub use super::ids::SourceId;
|
|
|
|
/// 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,
|
|
}
|