mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-01-03 17:38:50 +00:00
18 lines
328 B
Rust
18 lines
328 B
Rust
|
//! # Group ID
|
||
|
//!
|
||
|
//! @author Pierre Hubert
|
||
|
|
||
|
#[derive(Clone, PartialEq, Eq)]
|
||
|
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
|
||
|
}
|
||
|
}
|