pub enum VoteAuthError {
Missing,
Insufficient {
mode: MeetingMode,
auth_method: VoteAuthMethod,
},
}Expand description
Story 4.2 — refus opposé par assert_vote_auth_sufficient. Mappé vers
AppError (application/error.rs) : Missing en 422, Insufficient en
403.
Variants§
Missing
Un vote sans méthode déclarée n’est pas exploitable en cas de contestation : on ne sait même pas comment le votant a été identifié.
Insufficient
Le mode de l’AG (remote/hybrid, Art. 3.87 §1er CC) exige une méthode
qui engage le votant : itsme/eID, ou une procuration en bonne et due
forme (Art. 3.87 §4). presence ne fait qu’affirmer une présence que
la modalité distancielle ne permet justement pas de vérifier.
Trait Implementations§
Source§impl Clone for VoteAuthError
impl Clone for VoteAuthError
Source§fn clone(&self) -> VoteAuthError
fn clone(&self) -> VoteAuthError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for VoteAuthError
Source§impl Debug for VoteAuthError
impl Debug for VoteAuthError
Source§impl Display for VoteAuthError
impl Display for VoteAuthError
impl Eq for VoteAuthError
Source§impl Error for VoteAuthError
impl Error for VoteAuthError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<VoteAuthError> for AppError
impl From<VoteAuthError> for AppError
Source§fn from(err: VoteAuthError) -> Self
fn from(err: VoteAuthError) -> Self
Story 4.2 — assert_vote_auth_sufficient refusé : Missing → 422
(VOTE_AUTH_METHOD_REQUIRED), Insufficient → 403
(VOTE_AUTH_INSUFFICIENT).
Source§impl From<VoteAuthError> for String
impl From<VoteAuthError> for String
Source§fn from(err: VoteAuthError) -> Self
fn from(err: VoteAuthError) -> Self
Bridge legacy Result<_, String> pour cast_vote (cohérence avec
VotingRightSuspendedError). Préfixe parsable par le handler
(resolution_handlers.rs::cast_vote).
Source§impl PartialEq for VoteAuthError
impl PartialEq for VoteAuthError
Source§fn eq(&self, other: &VoteAuthError) -> bool
fn eq(&self, other: &VoteAuthError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VoteAuthError
Auto Trait Implementations§
impl Freeze for VoteAuthError
impl RefUnwindSafe for VoteAuthError
impl Send for VoteAuthError
impl Sync for VoteAuthError
impl Unpin for VoteAuthError
impl UnsafeUnpin for VoteAuthError
impl UnwindSafe for VoteAuthError
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<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