From 46d90b4e844303f650c855bea35e8391c8dedb9f Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Thu, 17 Sep 2020 20:48:40 -0600 Subject: [PATCH] Add type alias for Section id --- src/model/section.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/model/section.rs b/src/model/section.rs index 7659fa6..3578cf0 100644 --- a/src/model/section.rs +++ b/src/model/section.rs @@ -2,9 +2,11 @@ use crate::section_interface::SecId; use rusqlite::{Error as SqlError, Row as SqlRow, ToSql}; use std::sync::Arc; +pub type SectionId = u32; + #[derive(Debug, Clone)] pub struct Section { - pub id: u32, + pub id: SectionId, pub name: String, pub interface_id: SecId, }