crate::endpoints! {
open: Query<OpenRequest, OpenOutcome>;
}
use crate::api::perception::SourceRef;
#[derive(
phoxal_macros::DescribeWire, Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize,
)]
pub struct OpenRequest {
pub source: SourceRef,
pub width_px: Option<u32>,
pub height_px: Option<u32>,
}
#[derive(
phoxal_macros::DescribeWire,
Copy,
Eq,
Clone,
Debug,
PartialEq,
serde::Serialize,
serde::Deserialize,
)]
#[serde(rename_all = "snake_case")]
pub enum OpenOutcome {
Unsupported,
Unavailable,
}