mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-04-30 16:20:54 +00:00
18 lines
260 B
Rust
18 lines
260 B
Rust
//! # Admin ID API
|
|
//!
|
|
//! @author Pierre Hubert
|
|
|
|
use serde::Serialize;
|
|
|
|
use crate::data::admin::AdminID;
|
|
|
|
#[derive(Serialize)]
|
|
pub struct AdminIDAPI {
|
|
id: u64,
|
|
}
|
|
|
|
impl AdminIDAPI {
|
|
pub fn new(id: AdminID) -> Self {
|
|
Self { id: id.id() }
|
|
}
|
|
} |