pub struct AccordAutreMoyen {
pub destinataire: Uuid,
pub individuel: bool,
pub explicite: bool,
pub ecrit: bool,
pub donne_le: DateTime<Utc>,
}Expand description
L’accord donné par un destinataire à un autre mode d’envoi.
Les trois qualités de l’article sont des champs, pas un booléen : un accord qui n’en remplit que deux n’en est pas un, et il faut pouvoir dire lequel manque.
Fields§
§destinataire: Uuid§individuel: boolDonné par ce destinataire lui-même, et non par une clause générale.
explicite: boolPortant explicitement sur le mode d’envoi des convocations.
ecrit: boolConsigné par écrit, et donc produisible.
donne_le: DateTime<Utc>Implementations§
Source§impl AccordAutreMoyen
impl AccordAutreMoyen
Sourcepub fn est_valable(&self) -> bool
pub fn est_valable(&self) -> bool
L’accord remplit-il les trois conditions cumulatives ?
Sourcepub fn qualites_manquantes(&self) -> Vec<&'static str>
pub fn qualites_manquantes(&self) -> Vec<&'static str>
Ce qui lui manque, nommé.
Trait Implementations§
Source§impl Clone for AccordAutreMoyen
impl Clone for AccordAutreMoyen
Source§fn clone(&self) -> AccordAutreMoyen
fn clone(&self) -> AccordAutreMoyen
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 AccordAutreMoyen
impl Debug for AccordAutreMoyen
Source§impl PartialEq for AccordAutreMoyen
impl PartialEq for AccordAutreMoyen
Source§fn eq(&self, other: &AccordAutreMoyen) -> bool
fn eq(&self, other: &AccordAutreMoyen) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccordAutreMoyen
Auto Trait Implementations§
impl Freeze for AccordAutreMoyen
impl RefUnwindSafe for AccordAutreMoyen
impl Send for AccordAutreMoyen
impl Sync for AccordAutreMoyen
impl Unpin for AccordAutreMoyen
impl UnsafeUnpin for AccordAutreMoyen
impl UnwindSafe for AccordAutreMoyen
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.