channel alias

This commit is contained in:
QuantumEntangledAndy committed 2023-09-26 10:08:06 +07:00
1 parent 30fd27bfcf
commit 776c63a1bf
1 file changed
+1 -1
+1 -1
View File
@@ -143,7 +143,7 @@ pub(crate) struct CameraConfig {
pub(crate) permitted_users: Option<Vec<String>>,
#[validate(range(min = 0, max = 31, message = "Invalid channel", code = "channel_id"))]
#[serde(default = "default_channel_id")]
#[serde(default = "default_channel_id", alias = "channel")]
pub(crate) channel_id: u8,
#[validate]