1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-31 16:08:51 +00:00
comunicapiv3/src/data/group_id.rs

18 lines
335 B
Rust
Raw Normal View History

2020-06-23 16:55:23 +00:00
//! # Group ID
//!
//! @author Pierre Hubert
2020-06-23 17:01:07 +00:00
#[derive(Clone, PartialEq, Eq, Debug)]
2020-06-23 16:55:23 +00:00
pub struct GroupID(u64);
impl GroupID {
/// Initialize a new group ID object
pub fn new(id: u64) -> GroupID {
GroupID(id)
}
/// Get the ID current stored in this structure
pub fn id(&self) -> u64 {
self.0
}
}