pub struct DemandeDeReleve {
pub id: Uuid,
pub notaire: String,
pub unit_id: Uuid,
pub recue_le: DateTime<Utc>,
pub echeance: DateTime<Utc>,
pub fournie_le: Option<DateTime<Utc>>,
}Expand description
Une demande de relevé adressée par un notaire.
Fields§
§id: Uuid§notaire: String§unit_id: UuidLe lot dont la vente est en cours.
recue_le: DateTime<Utc>Date de réception par le syndic — c’est elle qui fait courir le délai.
echeance: DateTime<Utc>§fournie_le: Option<DateTime<Utc>>Date de fourniture du relevé, si le syndic l’a fourni.
Implementations§
Source§impl DemandeDeReleve
impl DemandeDeReleve
pub fn nouvelle(notaire: String, unit_id: Uuid, recue_le: DateTime<Utc>) -> Self
pub fn fournir(&mut self, le: DateTime<Utc>)
pub fn etat(&self, moment: DateTime<Utc>) -> EtatDemande
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 à alerter avant plutôt qu’à constater après.
Trait Implementations§
Source§impl Clone for DemandeDeReleve
impl Clone for DemandeDeReleve
Source§fn clone(&self) -> DemandeDeReleve
fn clone(&self) -> DemandeDeReleve
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DemandeDeReleve
impl Debug for DemandeDeReleve
Source§impl PartialEq for DemandeDeReleve
impl PartialEq for DemandeDeReleve
Source§fn eq(&self, other: &DemandeDeReleve) -> bool
fn eq(&self, other: &DemandeDeReleve) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DemandeDeReleve
Auto Trait Implementations§
impl Freeze for DemandeDeReleve
impl RefUnwindSafe for DemandeDeReleve
impl Send for DemandeDeReleve
impl Sync for DemandeDeReleve
impl Unpin for DemandeDeReleve
impl UnsafeUnpin for DemandeDeReleve
impl UnwindSafe for DemandeDeReleve
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.