pub struct MeetingNotCompletableError {
pub meeting_id: Uuid,
pub missing: Vec<MissingInvariant>,
}Expand description
Track H Story H3 — Erreur typée signalant que l’AG ne peut pas être
clôturée. Liste exhaustive des invariants manquants pour permettre au
FE de rendre <MissingInvariantsList> actionnable.
Mappée vers HTTP 422 MEETING_NOT_COMPLETABLE via From<> dans
application/error.rs. Le bridge From<> vers String permet aux
use-cases legacy Result<_, String> (cf. complete_meeting() qui n’a
pas encore migré vers AppError) de propager l’erreur via ? ; le
handler décode le préfixe MEETING_NOT_COMPLETABLE: pour répondre 422
- payload structuré.
Fields§
§meeting_id: Uuid§missing: Vec<MissingInvariant>Trait Implementations§
Source§impl Clone for MeetingNotCompletableError
impl Clone for MeetingNotCompletableError
Source§fn clone(&self) -> MeetingNotCompletableError
fn clone(&self) -> MeetingNotCompletableError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MeetingNotCompletableError
impl Debug for MeetingNotCompletableError
Source§impl Display for MeetingNotCompletableError
impl Display for MeetingNotCompletableError
impl Eq for MeetingNotCompletableError
Source§impl Error for MeetingNotCompletableError
impl Error for MeetingNotCompletableError
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<MeetingNotCompletableError> for AppError
impl From<MeetingNotCompletableError> for AppError
Source§fn from(err: MeetingNotCompletableError) -> Self
fn from(err: MeetingNotCompletableError) -> Self
Track H Story H3 — convertit l’erreur domain typée vers AppError 422
avec liste structurée des invariants manquants. Le FE consomme
details.missing[] pour rendre <MissingInvariantsList> + toast i18n.
Source§impl From<MeetingNotCompletableError> for String
impl From<MeetingNotCompletableError> for String
Source§fn from(err: MeetingNotCompletableError) -> Self
fn from(err: MeetingNotCompletableError) -> Self
Track H Story H3 — bridge legacy Result<_, String> pour
meeting_use_cases::complete_meeting (signature historique).
Le handler parse le préfixe MEETING_NOT_COMPLETABLE: pour reconstruire
le 422 narratif (cf. pattern Track H Story H2 conformity_response.rs).
Source§impl PartialEq for MeetingNotCompletableError
impl PartialEq for MeetingNotCompletableError
Source§fn eq(&self, other: &MeetingNotCompletableError) -> bool
fn eq(&self, other: &MeetingNotCompletableError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MeetingNotCompletableError
Auto Trait Implementations§
impl Freeze for MeetingNotCompletableError
impl RefUnwindSafe for MeetingNotCompletableError
impl Send for MeetingNotCompletableError
impl Sync for MeetingNotCompletableError
impl Unpin for MeetingNotCompletableError
impl UnsafeUnpin for MeetingNotCompletableError
impl UnwindSafe for MeetingNotCompletableError
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