Skip to main content

Module technical_inspection_dto

Module technical_inspection_dto 

Source
Expand description

Technical inspection DTOs — les montants utilisent rust_decimal::Decimal (ADR-0007/0008).

validator ne sait pas borner un Decimal : l’invariant « coût ≥ 0 » que portait #[validate(range(min = 0.0))] descend dans le domaine (TechnicalInspection::set_cost), où il couvre tous les appelants et plus seulement la route HTTP.

serde::float_option préserve la représentation JSON numérique (un Decimal nu sérialiserait en chaîne) ; default conserve le comportement « champ absent = non modifié » d’une mise à jour partielle.

Structs§

AddCertificateDto
AddInspectionPhotoDto
AddReportDto
CreateTechnicalInspectionDto
InspectionStatusDto
TechnicalInspectionListResponseDto
TechnicalInspectionResponseDto
UpdateTechnicalInspectionDto