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:
src
api_data
controllers
helpers
@ -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;
|
16
src/api_data/res_check_email_exists.rs
Normal file
16
src/api_data/res_check_email_exists.rs
Normal file
@ -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 }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user