[feat](trx-protocol): add display_name to RigEntry
Include optional display_name field in GetRigs response to allow clients to show friendly rig names instead of just identifiers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -54,6 +54,9 @@ pub struct ClientEnvelope {
|
|||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
pub struct RigEntry {
|
pub struct RigEntry {
|
||||||
pub rig_id: String,
|
pub rig_id: String,
|
||||||
|
/// Display name for the rig (long name from config, or rig_id if not set).
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
pub display_name: Option<String>,
|
||||||
pub state: RigSnapshot,
|
pub state: RigSnapshot,
|
||||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
pub audio_port: Option<u16>,
|
pub audio_port: Option<u16>,
|
||||||
|
|||||||
Reference in New Issue
Block a user