pub struct BuildingNotConformantError {
pub building_id: Uuid,
pub units_delta: i32,
pub quota_delta: Decimal,
pub quota_basis: i32,
}Expand description
Track H Story H1 — Erreur typée pour la validation conformité d’un immeuble (INV-H1).
Exposée par Building::assert_conformant(). Mappée vers AppError::BuildingNotConformant
(HTTP 422 + payload BUILDING_NOT_CONFORMANT) par From<> dans
application/error.rs.
Convention quota_delta : total_tantiemes - quota_sum. Positif si
l’immeuble manque de quotas (cas typique drift), négatif si surplus.
quota_basis = acte de base (1000, 10000, autre) — exposé au FE pour
affichage explicite (« 25 / 10000 »).
Fields§
§building_id: Uuid§units_delta: i32§quota_delta: Decimal§quota_basis: i32Trait Implementations§
Source§impl Clone for BuildingNotConformantError
impl Clone for BuildingNotConformantError
Source§fn clone(&self) -> BuildingNotConformantError
fn clone(&self) -> BuildingNotConformantError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildingNotConformantError
impl Debug for BuildingNotConformantError
Source§impl Display for BuildingNotConformantError
impl Display for BuildingNotConformantError
impl Eq for BuildingNotConformantError
Source§impl Error for BuildingNotConformantError
impl Error for BuildingNotConformantError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BuildingNotConformantError> for AppError
impl From<BuildingNotConformantError> for AppError
Source§fn from(err: BuildingNotConformantError) -> Self
fn from(err: BuildingNotConformantError) -> Self
Track H Story H1 — pre-check validate-before-compute. L’immeuble
n’est pas conforme à son acte de base → 422 + payload narratif
BUILDING_NOT_CONFORMANT (FE rend banner + toast).
Source§impl From<BuildingNotConformantError> for String
impl From<BuildingNotConformantError> for String
Source§fn from(err: BuildingNotConformantError) -> Self
fn from(err: BuildingNotConformantError) -> Self
Track H Story H1 — bridge legacy Result<_, String> pour les
use-cases qui n’ont pas encore migré vers AppError (call_for_funds,
etat_date…). Mémoire validate-before-compute : pas de refacto en
cascade dans cette story, le bridge permet l’opérateur ?.
Source§impl PartialEq for BuildingNotConformantError
impl PartialEq for BuildingNotConformantError
Source§fn eq(&self, other: &BuildingNotConformantError) -> bool
fn eq(&self, other: &BuildingNotConformantError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BuildingNotConformantError
Auto Trait Implementations§
impl Freeze for BuildingNotConformantError
impl RefUnwindSafe for BuildingNotConformantError
impl Send for BuildingNotConformantError
impl Sync for BuildingNotConformantError
impl Unpin for BuildingNotConformantError
impl UnsafeUnpin for BuildingNotConformantError
impl UnwindSafe for BuildingNotConformantError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more