Add type alias for Section id
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7cb956c2bd
commit
46d90b4e84
@ -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…
x
Reference in New Issue
Block a user