Skip to content

Commit

Permalink
refactor: Remove unneeded Debug derive
Browse files Browse the repository at this point in the history
  • Loading branch information
bush1D3v committed Jul 3, 2024
1 parent c2b930d commit f6b4d0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/user/user_dtos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
use validator::Validate;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[derive(Serialize, Deserialize, Clone)]
pub struct UserDTO {
pub id: String,
pub name: String,
Expand All @@ -19,7 +19,7 @@ static RE_PASSWORD: Lazy<Regex> = Lazy::new(|| Regex::new("^.*?[@$!%*?&].*$").un
static RE_EMAIL: Lazy<Regex> =
Lazy::new(|| Regex::new(r"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$").unwrap());

#[derive(Serialize, Deserialize, Debug, ToSchema, Validate, Clone)]
#[derive(Serialize, Deserialize, ToSchema, Validate, Clone)]
pub struct CreateUserDTO {
#[validate(
length(
Expand Down Expand Up @@ -62,7 +62,7 @@ pub struct CreateUserDTO {
pub password: String,
}

#[derive(Serialize, Deserialize, Debug, ToSchema, Validate, Clone)]
#[derive(Serialize, Deserialize, ToSchema, Validate, Clone)]
pub struct LoginUserDTO {
#[validate(
email(message = "O e-mail deve ser um endereço válido."),
Expand Down

0 comments on commit f6b4d0d

Please sign in to comment.