pub enum MissingInvariant {
ConvocationsNotSent,
VotesNotClosed {
open_resolutions: i32,
},
AttendanceNotRecorded,
QuorumNotReached {
attended_quotas: Decimal,
total_quotas: Decimal,
},
HeadCountQuorumNotReached {
present_owners_count: i32,
total_owners_count: i32,
},
MinutesDraftMissing,
}Expand description
Track H Story H3 — Invariant légal manquant pour clôturer une AG.
Énuméré au lieu d’un simple message string : le frontend rend une liste
<MissingInvariantsList> typée par variant (label i18n distinct par
invariant) et conserve les métadonnées (open_resolutions, quotas).
Pourquoi enum + struct fields : permet au FE de localiser sans
parser de message, et de proposer la bonne action de correction (ex:
router vers panel résolutions si VotesNotClosed).
Variants§
ConvocationsNotSent
Art. 3.87 §3 CC — Convocations pas envoyées (au moins une non sent).
VotesNotClosed
Art. 3.87 §4 CC — Au moins une résolution est encore Pending.
AttendanceNotRecorded
Art. 3.87 §5 CC — present_quotas non renseigné côté meeting.
QuorumNotReached
Art. 3.87 §5 CC — Volet quotités du quorum double non atteint :
quotités présentes < 50 % (inclusif) ET < 3/4 (alternative). total_quotas == 0 est mappé ici (pas de div by zero).
HeadCountQuorumNotReached
Story H9 — Art. 3.87 §5 CC — Volet têtes du quorum double non
atteint : ≤ 50 % des copropriétaires présents/représentés (« plus de la
moitié » requis, strict), et l’alternative > 3/4 des quotités n’est pas
remplie. total_owners_count == 0 est mappé ici.
MinutesDraftMissing
PV draft (minutes) pas encore enregistré (cf. minutes_document_id).
Trait Implementations§
Source§impl Clone for MissingInvariant
impl Clone for MissingInvariant
Source§fn clone(&self) -> MissingInvariant
fn clone(&self) -> MissingInvariant
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 MissingInvariant
impl Debug for MissingInvariant
impl Eq for MissingInvariant
Source§impl PartialEq for MissingInvariant
impl PartialEq for MissingInvariant
Source§fn eq(&self, other: &MissingInvariant) -> bool
fn eq(&self, other: &MissingInvariant) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for MissingInvariant
impl Serialize for MissingInvariant
impl StructuralPartialEq for MissingInvariant
Auto Trait Implementations§
impl Freeze for MissingInvariant
impl RefUnwindSafe for MissingInvariant
impl Send for MissingInvariant
impl Sync for MissingInvariant
impl Unpin for MissingInvariant
impl UnsafeUnpin for MissingInvariant
impl UnwindSafe for MissingInvariant
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