godchat-core 0.1.0

Core types and traits for godchat
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::types::*;

pub fn pid(s: &str) -> ProjectId {
    ProjectId::parse(s).unwrap()
}

pub fn tid(n: i64) -> TaskId {
    TaskId::parse(n).unwrap()
}

pub fn tname(s: &str) -> TaskName {
    TaskName::parse(s).unwrap()
}