pub enum OwnerContributionError {
NonPositiveAmount,
EmptyDescription,
}Expand description
Domain-typed validation error for owner contributions (PCMN classe 7).
Pure domain type — no infra/application dependency (hexagonal purity).
Précédent JournalEntryError/ChargeDistributionError : l’entité
renvoie son erreur typée, l’application la mappe vers AppError
(#433 / WP-A6 EXP-008) → 400 validation, jamais 500 Internal.
Variants§
NonPositiveAmount
Montant négatif (un revenu entrant ne peut être < 0).
EmptyDescription
Description vide.
Trait Implementations§
Source§impl Clone for OwnerContributionError
impl Clone for OwnerContributionError
Source§fn clone(&self) -> OwnerContributionError
fn clone(&self) -> OwnerContributionError
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 OwnerContributionError
impl Debug for OwnerContributionError
Source§impl Display for OwnerContributionError
impl Display for OwnerContributionError
Source§impl Error for OwnerContributionError
impl Error for OwnerContributionError
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<OwnerContributionError> for AppError
impl From<OwnerContributionError> for AppError
Source§fn from(e: OwnerContributionError) -> Self
fn from(e: OwnerContributionError) -> Self
Une contribution malformée (montant négatif, description vide) est une erreur d’entrée client → 400 validation, jamais 500 Internal (#433 / WP-A6 EXP-008).
Source§impl From<OwnerContributionError> for String
Bridge : use-cases/ports Result<_, String> inchangés pendant que
l’entité est typée (cascade String→AppError = slice large différée,
précédent WP-A3/A4/A5). Pur, std-only.
impl From<OwnerContributionError> for String
Bridge : use-cases/ports Result<_, String> inchangés pendant que
l’entité est typée (cascade String→AppError = slice large différée,
précédent WP-A3/A4/A5). Pur, std-only.
Source§fn from(e: OwnerContributionError) -> String
fn from(e: OwnerContributionError) -> String
Source§impl PartialEq for OwnerContributionError
impl PartialEq for OwnerContributionError
Source§fn eq(&self, other: &OwnerContributionError) -> bool
fn eq(&self, other: &OwnerContributionError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OwnerContributionError
Auto Trait Implementations§
impl Freeze for OwnerContributionError
impl RefUnwindSafe for OwnerContributionError
impl Send for OwnerContributionError
impl Sync for OwnerContributionError
impl Unpin for OwnerContributionError
impl UnsafeUnpin for OwnerContributionError
impl UnwindSafe for OwnerContributionError
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