mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-27 07:49:21 +00:00
15 lines
289 B
Rust
15 lines
289 B
Rust
|
//! # Check if email exists result
|
||
|
//!
|
||
|
//! @author Pierre Hubert
|
||
|
use serde::Serialize;
|
||
|
|
||
|
#[derive(Serialize)]
|
||
|
pub struct ResCheckEmailExists {
|
||
|
exists: bool
|
||
|
}
|
||
|
|
||
|
impl ResCheckEmailExists {
|
||
|
pub fn new(exists: bool) -> ResCheckEmailExists {
|
||
|
ResCheckEmailExists { exists }
|
||
|
}
|
||
|
}
|