pub struct FenetreAgOrdinaire { /* private fields */ }Expand description
La période annuelle de quinze jours fixée par le règlement d’ordre intérieur (Art. 3.85 § 3, 3°).
Implementations§
Source§impl FenetreAgOrdinaire
impl FenetreAgOrdinaire
Sourcepub const DUREE_JOURS: i64 = 15
pub const DUREE_JOURS: i64 = 15
Quinze jours, bornes comprises.
Sourcepub const PREAVIS_PROPOSITIONS_JOURS: i64 = 21
pub const PREAVIS_PROPOSITIONS_JOURS: i64 = 21
Trois semaines avant le premier jour, pour les propositions (Art. 3.87 § 3).
Sourcepub fn new(mois: u32, jour: u32) -> Result<Self, FenetreInvalide>
pub fn new(mois: u32, jour: u32) -> Result<Self, FenetreInvalide>
Le premier jour de la période, tel que le ROI le fixe.
Une année bissextile suffit à valider un 29 février : la règle ne s’applique alors qu’un an sur quatre, ce qui est un choix de ROI discutable mais licite. On refuse en revanche le 30 février.
Sourcepub fn debut(&self, annee: i32) -> Option<NaiveDate>
pub fn debut(&self, annee: i32) -> Option<NaiveDate>
Le premier jour de la période pour un exercice donné.
None si la date ne tombe pas cette année-là — le seul cas est un
29 février sur une année commune.
Sourcepub fn contient(&self, date: NaiveDate) -> bool
pub fn contient(&self, date: NaiveDate) -> bool
La date tombe-t-elle dans la fenêtre de son propre exercice ?
La comparaison se fait sur l’année de la date, pas sur l’année civile courante : une AG du 3 janvier relève de la fenêtre de janvier de la même année.
Sourcepub fn derniere_date_pour_propositions(&self, annee: i32) -> Option<NaiveDate>
pub fn derniere_date_pour_propositions(&self, annee: i32) -> Option<NaiveDate>
La date limite de réception des propositions à inscrire à l’ordre du jour (Art. 3.87 § 3).
« Au moins trois semaines avant » : une proposition reçue ce jour-là est encore recevable, puisque le délai est alors exactement de trois semaines.
Sourcepub fn proposition_recevable(&self, recue_le: NaiveDate, annee: i32) -> bool
pub fn proposition_recevable(&self, recue_le: NaiveDate, annee: i32) -> bool
Une proposition reçue à cette date doit-elle être inscrite ?
pub fn mois(&self) -> u32
pub fn jour(&self) -> u32
Trait Implementations§
Source§impl Clone for FenetreAgOrdinaire
impl Clone for FenetreAgOrdinaire
Source§fn clone(&self) -> FenetreAgOrdinaire
fn clone(&self) -> FenetreAgOrdinaire
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for FenetreAgOrdinaire
impl ComposeSchema for FenetreAgOrdinaire
impl Copy for FenetreAgOrdinaire
Source§impl Debug for FenetreAgOrdinaire
impl Debug for FenetreAgOrdinaire
Source§impl<'de> Deserialize<'de> for FenetreAgOrdinaire
impl<'de> Deserialize<'de> for FenetreAgOrdinaire
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for FenetreAgOrdinaire
Source§impl PartialEq for FenetreAgOrdinaire
impl PartialEq for FenetreAgOrdinaire
Source§fn eq(&self, other: &FenetreAgOrdinaire) -> bool
fn eq(&self, other: &FenetreAgOrdinaire) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for FenetreAgOrdinaire
impl Serialize for FenetreAgOrdinaire
impl StructuralPartialEq for FenetreAgOrdinaire
Auto Trait Implementations§
impl Freeze for FenetreAgOrdinaire
impl RefUnwindSafe for FenetreAgOrdinaire
impl Send for FenetreAgOrdinaire
impl Sync for FenetreAgOrdinaire
impl Unpin for FenetreAgOrdinaire
impl UnsafeUnpin for FenetreAgOrdinaire
impl UnwindSafe for FenetreAgOrdinaire
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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