pub struct PostgresModuleRegistry { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ModuleRegistry for PostgresModuleRegistry
impl ModuleRegistry for PostgresModuleRegistry
Source§fn list_enabled<'life0, 'async_trait>(
&'life0 self,
acp_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Module>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_enabled<'life0, 'async_trait>(
&'life0 self,
acp_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Module>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Les modules actifs (
archived_at IS NULL) d’une ACP. Read moreSource§fn enable<'life0, 'async_trait>(
&'life0 self,
acp_id: Uuid,
module: Module,
) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn enable<'life0, 'async_trait>(
&'life0 self,
acp_id: Uuid,
module: Module,
) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Allume un module. Idempotent : rallumer un module déjà actif remet
simplement
archived_at à NULL et ne duplique pas la ligne — c’est
ce qui permet le cycle activer/désactiver/réactiver d’INV-27 sans
perdre les données.Source§fn disable<'life0, 'async_trait>(
&'life0 self,
acp_id: Uuid,
module: Module,
) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disable<'life0, 'async_trait>(
&'life0 self,
acp_id: Uuid,
module: Module,
) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Éteint un module. Idempotent également. Ne supprime rien : pose
archived_at. Le refus d’éteindre identity est une règle métier et
vit dans le use-case, pas ici.Auto Trait Implementations§
impl !RefUnwindSafe for PostgresModuleRegistry
impl !UnwindSafe for PostgresModuleRegistry
impl Freeze for PostgresModuleRegistry
impl Send for PostgresModuleRegistry
impl Sync for PostgresModuleRegistry
impl Unpin for PostgresModuleRegistry
impl UnsafeUnpin for PostgresModuleRegistry
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
§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.