pub enum CallForFundsError {
NonPositiveTotalAmount,
EmptyTitle,
EmptyDescription,
DueDateNotAfterCallDate,
NegativeReserveShare,
ReserveShareExceedsTotal,
}Expand description
Domain-typed validation error for calls for funds (appel de fonds).
Pure domain type — no infra/application dependency (hexagonal purity).
Précédent JournalEntryError/ChargeDistributionError (#433 / WP-A6
EXP-008) → 400 validation, jamais 500 Internal.
Variants§
NonPositiveTotalAmount
Montant total non strictement positif.
EmptyTitle
Titre vide.
EmptyDescription
Description vide.
DueDateNotAfterCallDate
Date d’échéance ≤ date d’appel (fenêtre de paiement invalide).
Part affectée au fonds de réserve négative (Art. 3.86 § 3 al. 7).
Part affectée au fonds de réserve supérieure au montant appelé.
Trait Implementations§
Source§impl Clone for CallForFundsError
impl Clone for CallForFundsError
Source§fn clone(&self) -> CallForFundsError
fn clone(&self) -> CallForFundsError
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 CallForFundsError
impl Debug for CallForFundsError
Source§impl Display for CallForFundsError
impl Display for CallForFundsError
Source§impl Error for CallForFundsError
impl Error for CallForFundsError
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<CallForFundsError> for AppError
impl From<CallForFundsError> for AppError
Source§fn from(e: CallForFundsError) -> Self
fn from(e: CallForFundsError) -> Self
Un appel de fonds malformé (montant ≤ 0, titre/description vide, échéance ≤ appel) est une erreur d’entrée client → 400 validation, jamais 500 Internal (#433 / WP-A6 EXP-008).
Source§impl From<CallForFundsError> for String
Bridge : use-cases/ports Result<_, String> inchangés (cascade
String→AppError = slice large différée, précédent WP-A3/A4/A5).
impl From<CallForFundsError> for String
Bridge : use-cases/ports Result<_, String> inchangés (cascade
String→AppError = slice large différée, précédent WP-A3/A4/A5).
Source§fn from(e: CallForFundsError) -> String
fn from(e: CallForFundsError) -> String
Source§impl PartialEq for CallForFundsError
impl PartialEq for CallForFundsError
Source§fn eq(&self, other: &CallForFundsError) -> bool
fn eq(&self, other: &CallForFundsError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CallForFundsError
Auto Trait Implementations§
impl Freeze for CallForFundsError
impl RefUnwindSafe for CallForFundsError
impl Send for CallForFundsError
impl Sync for CallForFundsError
impl Unpin for CallForFundsError
impl UnsafeUnpin for CallForFundsError
impl UnwindSafe for CallForFundsError
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<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