pub enum ConvocationType {
Ordinary,
Extraordinary,
SecondConvocation,
}Expand description
Convocation type according to Belgian copropriété law
Variants§
Ordinary
Ordinary General Assembly (15 days minimum notice)
Extraordinary
Extraordinary General Assembly (8 days minimum notice)
SecondConvocation
Second convocation after quorum not reached (8 days minimum notice)
Implementations§
Source§impl ConvocationType
impl ConvocationType
Sourcepub fn minimum_notice_days(&self) -> i64
pub fn minimum_notice_days(&self) -> i64
Get minimum notice period in days according to Belgian law
Sourcepub fn to_db_string(&self) -> &'static str
pub fn to_db_string(&self) -> &'static str
Convert to database string
Sourcepub fn from_db_string(s: &str) -> Result<Self, String>
pub fn from_db_string(s: &str) -> Result<Self, String>
Parse from database string
Trait Implementations§
Source§impl Clone for ConvocationType
impl Clone for ConvocationType
Source§fn clone(&self) -> ConvocationType
fn clone(&self) -> ConvocationType
Returns a duplicate of the value. Read more
1.0.0 · 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 ConvocationType
impl Debug for ConvocationType
Source§impl<'de> Deserialize<'de> for ConvocationType
impl<'de> Deserialize<'de> for ConvocationType
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConvocationType
impl PartialEq for ConvocationType
Source§impl Serialize for ConvocationType
impl Serialize for ConvocationType
impl StructuralPartialEq for ConvocationType
Auto Trait Implementations§
impl Freeze for ConvocationType
impl RefUnwindSafe for ConvocationType
impl Send for ConvocationType
impl Sync for ConvocationType
impl Unpin for ConvocationType
impl UnwindSafe for ConvocationType
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<T> Chain<T> for T
impl<T> Chain<T> for T
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.