1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-07-17 12:48:04 +00:00

Can check if an email address exists or not

This commit is contained in:
2020-07-13 13:00:02 +02:00
parent c2c6a24b29
commit 071c773412
5 changed files with 35 additions and 1 deletions

@ -42,4 +42,5 @@ pub mod res_number_unread_notifications;
pub mod res_count_all_unreads;
pub mod notification_api;
pub mod user_membership_api;
mod type_container_api;
mod type_container_api;
pub mod res_check_email_exists;

@ -0,0 +1,16 @@
//! # Check if email exists result
//!
//! @author Pierre Hubert
use serde::Serialize;
#[derive(Serialize)]
#[allow(non_snake_case)]
pub struct ResCheckEmailExists {
exists: bool
}
impl ResCheckEmailExists {
pub fn new(exists: bool) -> ResCheckEmailExists {
ResCheckEmailExists { exists }
}
}