pub struct AcpNotConformantError {
pub acp_id: Uuid,
pub units_delta: i32,
pub quota_delta: Decimal,
pub quota_basis: i32,
}Expand description
Story H5 — Erreur typée de non-conformité d’une ACP (Art. 3.84 CC, INV-L3).
Exposée par Acp::assert_conformant(). Mappée vers
AppError::AcpNotConformant (HTTP 422 + payload ACP_NOT_CONFORMANT) par
From<> dans application/error.rs. Même convention que
BuildingNotConformantError (Story H1) : quota_delta = total_tantiemes - quota_sum, quota_basis = acte de base (1000/10000/autre).
Fields§
§acp_id: Uuid§units_delta: i32§quota_delta: Decimal§quota_basis: i32Trait Implementations§
Source§impl Clone for AcpNotConformantError
impl Clone for AcpNotConformantError
Source§fn clone(&self) -> AcpNotConformantError
fn clone(&self) -> AcpNotConformantError
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 AcpNotConformantError
impl Debug for AcpNotConformantError
Source§impl Display for AcpNotConformantError
impl Display for AcpNotConformantError
impl Eq for AcpNotConformantError
Source§impl Error for AcpNotConformantError
impl Error for AcpNotConformantError
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<AcpNotConformantError> for AppError
impl From<AcpNotConformantError> for AppError
Source§fn from(err: AcpNotConformantError) -> Self
fn from(err: AcpNotConformantError) -> Self
Track H Story H5 — la copropriété (ACP) n’est pas conforme à son acte
de base → 422 + payload ACP_NOT_CONFORMANT. Utilisé par les gates
validate-before-compute ACP-level (Story H7).
Source§impl From<AcpNotConformantError> for String
impl From<AcpNotConformantError> for String
Source§fn from(err: AcpNotConformantError) -> Self
fn from(err: AcpNotConformantError) -> Self
Track H Story H5 — bridge legacy Result<_, String> (use-cases
call_for_funds / etat_date). Le handler parse le préfixe
ACP_NOT_CONFORMANT: pour reconstruire le 422 narratif (cf.
conformity_response.rs, Story H7).
Source§impl PartialEq for AcpNotConformantError
impl PartialEq for AcpNotConformantError
Source§fn eq(&self, other: &AcpNotConformantError) -> bool
fn eq(&self, other: &AcpNotConformantError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AcpNotConformantError
Auto Trait Implementations§
impl Freeze for AcpNotConformantError
impl RefUnwindSafe for AcpNotConformantError
impl Send for AcpNotConformantError
impl Sync for AcpNotConformantError
impl Unpin for AcpNotConformantError
impl UnsafeUnpin for AcpNotConformantError
impl UnwindSafe for AcpNotConformantError
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