Browse Source

Add type alias for Section id

master
Alex Mikhalev 4 years ago
parent
commit
46d90b4e84
  1. 4
      src/model/section.rs

4
src/model/section.rs

@ -2,9 +2,11 @@ use crate::section_interface::SecId;
use rusqlite::{Error as SqlError, Row as SqlRow, ToSql}; use rusqlite::{Error as SqlError, Row as SqlRow, ToSql};
use std::sync::Arc; use std::sync::Arc;
pub type SectionId = u32;
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct Section { pub struct Section {
pub id: u32, pub id: SectionId,
pub name: String, pub name: String,
pub interface_id: SecId, pub interface_id: SecId,
} }

Loading…
Cancel
Save