forked from jmug/stoatchat
feat(core/models): basic implementation of User and File models
This commit is contained in:
@@ -18,10 +18,19 @@ macro_rules! auto_derived {
|
||||
}
|
||||
|
||||
mod bots;
|
||||
mod files;
|
||||
mod users;
|
||||
|
||||
pub use bots::*;
|
||||
pub use files::*;
|
||||
pub use users::*;
|
||||
|
||||
/// Utility function to check if a boolean value is false
|
||||
pub fn if_false(t: &bool) -> bool {
|
||||
!t
|
||||
}
|
||||
|
||||
/// Utility function to check if an u32 is zero
|
||||
pub fn if_zero_u32(t: &u32) -> bool {
|
||||
t == &0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user