mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-04-30 00:00:53 +00:00
18 lines
329 B
Rust
18 lines
329 B
Rust
//! # Admin authentication success
|
|
//!
|
|
//! Structure returned when an administrator successfully authenticate
|
|
//!
|
|
//! @author Pierre Hubert
|
|
|
|
use serde::Serialize;
|
|
|
|
#[derive(Serialize)]
|
|
pub struct AdminAuthSuccess {
|
|
token: String
|
|
}
|
|
|
|
impl AdminAuthSuccess {
|
|
pub fn new(t: String) -> Self {
|
|
Self { token: t }
|
|
}
|
|
} |