rustriff_lib/domain/dto/audio_device_dto.rs
1//! Data transfer object (DTO) for audio devices.
2//!
3//! This type is serialized and sent to the frontend to populate
4//! input/output device selectors.
5
6use serde::Serialize;
7
8/// Serializable representation of an audio device.
9#[derive(Serialize, Clone)]
10pub struct AudioDeviceDto {
11 /// Stable device identifier used by backend commands for lookup.
12 pub id: String,
13 /// Human-readable device name shown in the UI.
14 pub name: String,
15 /// Default sample rate the device is configured in.
16 pub sample_rate: u32,
17}