pub struct PostgresLienNotaireRepository { /* private fields */ }Implementations§
Trait Implementations§
Source§impl LienNotaireRepository for PostgresLienNotaireRepository
impl LienNotaireRepository for PostgresLienNotaireRepository
Source§fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
lien: &'life1 LienNotaire,
) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
lien: &'life1 LienNotaire,
) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Persist a freshly issued link.
Source§fn find_by_token_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
token_hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<LienNotaire>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_by_token_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
token_hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<LienNotaire>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Look up a link by its
token_hash (already hashed by the caller).
Returns Ok(None) if no record matches.Source§fn find_active_by_etat_date_id<'life0, 'async_trait>(
&'life0 self,
etat_date_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<LienNotaire>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_active_by_etat_date_id<'life0, 'async_trait>(
&'life0 self,
etat_date_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<LienNotaire>, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The most recently issued, non-revoked link for a given état daté —
what
renew/revoke act on. May be expired: expiration is not
terminal, only revocation is (ADR 0051 — le renouvellement reste
possible après l’échéance).Auto Trait Implementations§
impl !RefUnwindSafe for PostgresLienNotaireRepository
impl !UnwindSafe for PostgresLienNotaireRepository
impl Freeze for PostgresLienNotaireRepository
impl Send for PostgresLienNotaireRepository
impl Sync for PostgresLienNotaireRepository
impl Unpin for PostgresLienNotaireRepository
impl UnsafeUnpin for PostgresLienNotaireRepository
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.