// use serde::{Deserialize, Serialize};
pub mod user;
pub use user::{
    CreateOrUpdateUserForm, CreateOrUpdateUserFormData, CreateUserForm, DeleteUserForm,
    UpdateUserForm, UserSearchForm, UserSearchFormData,
};

#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "rocket", derive(rocket::FromForm))]
pub struct StringSearchFilter<'r> {
    #[cfg_attr(feature = "serde", serde(borrow))]
    contains: &'r str,
    #[cfg_attr(feature = "serde", serde(borrow))]
    equals: &'r str,
}
impl<'r> StringSearchFilter<'r> {
    pub fn contains(&'r self) -> &'r str {
        self.contains
    }
    pub fn equals(&'r self) -> &'r str {
        self.equals
    }
}
