pub enum VotingRightError {
UnknownOwnershipType(String),
MultipleRepresentatives {
unit_id: Uuid,
count: usize,
},
}Expand description
Erreurs typées du calcul de droit de vote (Art. 3.87 §1 CC).
Variants§
UnknownOwnershipType(String)
Chaîne de titularité inconnue (hors enum / CHECK DB).
MultipleRepresentatives
Plus d’un représentant de vote désigné pour un même lot. Art. 3.87 §1 : les titulaires désignent UN représentant unique.
Trait Implementations§
Source§impl Clone for VotingRightError
impl Clone for VotingRightError
Source§fn clone(&self) -> VotingRightError
fn clone(&self) -> VotingRightError
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 VotingRightError
impl Debug for VotingRightError
Source§impl Display for VotingRightError
impl Display for VotingRightError
impl Eq for VotingRightError
Source§impl Error for VotingRightError
impl Error for VotingRightError
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<VotingRightError> for AppError
impl From<VotingRightError> for AppError
Source§fn from(err: VotingRightError) -> Self
fn from(err: VotingRightError) -> Self
#848 (Art. 3.87 §1 CC) — refus de désignation. Le contrôle dormant
assert_single_voting_representative (jusqu’ici démontré par
tests/bdd_voting_right.rs mais appelé par aucun code de production)
est désormais câblé dans UnitOwnerUseCases::designate_voting_representative.
MultipleRepresentatives → 409 : un second représentant pour le même
lot est un CONFLIT avec l’état existant, pas une entrée invalide.
UnknownOwnershipType ne devrait pas survenir sur ce chemin (la valeur
vient d’une colonne déjà contrainte par le CHECK SQL) — narré en
interne plutôt que masqué.
Source§impl PartialEq for VotingRightError
impl PartialEq for VotingRightError
Source§fn eq(&self, other: &VotingRightError) -> bool
fn eq(&self, other: &VotingRightError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VotingRightError
Auto Trait Implementations§
impl Freeze for VotingRightError
impl RefUnwindSafe for VotingRightError
impl Send for VotingRightError
impl Sync for VotingRightError
impl Unpin for VotingRightError
impl UnsafeUnpin for VotingRightError
impl UnwindSafe for VotingRightError
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