pub struct PassationDeDossier {
pub acp_id: Uuid,
pub syndic_sortant: Uuid,
pub syndic_entrant: Uuid,
pub fin_de_mandat: DateTime<Utc>,
pub echeance: DateTime<Utc>,
pub remis_le: Option<DateTime<Utc>>,
}Expand description
La remise du dossier au syndic successeur, et son échéance.
── Pourquoi cet objet existe ────────────────────────────────────────────
Le module documentait le délai de trente jours depuis toujours, en tête de fichier, et ne le tenait nulle part : aucune échéance, aucun état, rien qui puisse être dépassé. Le registre légal déclarait pourtant l’obligation attestée par un test qui vérifie que le successeur voit l’ensemble des pièces — ce qui est vrai, et ne dit rien du délai (#847).
Un dossier remis en retard n’est pas une formalité manquée : le successeur gère une copropriété dont il ignore les dettes, les procédures en cours et les décisions d’assemblée. Il engage sa responsabilité sur des faits qu’il n’a pas pu connaître.
Fields§
§acp_id: Uuid§syndic_sortant: Uuid§syndic_entrant: Uuid§fin_de_mandat: DateTime<Utc>Fin du mandat sortant — c’est elle qui fait courir le délai.
echeance: DateTime<Utc>§remis_le: Option<DateTime<Utc>>Date de remise effective, si elle a eu lieu.
Implementations§
Source§impl PassationDeDossier
impl PassationDeDossier
pub fn nouvelle( acp_id: Uuid, syndic_sortant: Uuid, syndic_entrant: Uuid, fin_de_mandat: DateTime<Utc>, ) -> Self
pub fn remettre(&mut self, le: DateTime<Utc>)
pub fn etat(&self, moment: DateTime<Utc>) -> EtatPassation
Sourcepub fn jours_restants(&self, moment: DateTime<Utc>) -> i64
pub fn jours_restants(&self, moment: DateTime<Utc>) -> i64
Combien de jours restent avant l’échéance ? Négatif une fois dépassée.
Sert à prévenir avant plutôt qu’à constater après : c’est la seule forme utile d’un délai légal dans un logiciel de gestion.
Trait Implementations§
Source§impl Clone for PassationDeDossier
impl Clone for PassationDeDossier
Source§fn clone(&self) -> PassationDeDossier
fn clone(&self) -> PassationDeDossier
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 PassationDeDossier
impl Debug for PassationDeDossier
Source§impl PartialEq for PassationDeDossier
impl PartialEq for PassationDeDossier
Source§fn eq(&self, other: &PassationDeDossier) -> bool
fn eq(&self, other: &PassationDeDossier) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PassationDeDossier
Auto Trait Implementations§
impl Freeze for PassationDeDossier
impl RefUnwindSafe for PassationDeDossier
impl Send for PassationDeDossier
impl Sync for PassationDeDossier
impl Unpin for PassationDeDossier
impl UnsafeUnpin for PassationDeDossier
impl UnwindSafe for PassationDeDossier
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