pub struct Commissariat {
pub titulaires: Vec<Uuid>,
pub exercice: i32,
}Expand description
La désignation d’un commissaire, ou d’un collège, pour un exercice.
Fields§
§titulaires: Vec<Uuid>Un ou plusieurs titulaires — l’article prévoit expressément le collège.
exercice: i32L’exercice contrôlé. La désignation est annuelle : elle ne vaut que pour celui-là.
Implementations§
Source§impl Commissariat
impl Commissariat
Sourcepub fn designer(
titulaires: Vec<Uuid>,
exercice: i32,
syndic_owner_id: Option<Uuid>,
) -> Result<Self, DesignationRefusee>
pub fn designer( titulaires: Vec<Uuid>, exercice: i32, syndic_owner_id: Option<Uuid>, ) -> Result<Self, DesignationRefusee>
Désigne le ou les commissaires pour un exercice.
syndic_owner_id est l’identifiant du syndic s’il est aussi
copropriétaire — le seul cas où il pourrait figurer dans la liste.
pub fn est_un_college(&self) -> bool
Trait Implementations§
Source§impl Clone for Commissariat
impl Clone for Commissariat
Source§fn clone(&self) -> Commissariat
fn clone(&self) -> Commissariat
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 Commissariat
impl Debug for Commissariat
Source§impl PartialEq for Commissariat
impl PartialEq for Commissariat
Source§fn eq(&self, other: &Commissariat) -> bool
fn eq(&self, other: &Commissariat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Commissariat
Auto Trait Implementations§
impl Freeze for Commissariat
impl RefUnwindSafe for Commissariat
impl Send for Commissariat
impl Sync for Commissariat
impl Unpin for Commissariat
impl UnsafeUnpin for Commissariat
impl UnwindSafe for Commissariat
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.