pub trait LienNotaireRepository: Send + Sync {
// Required methods
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 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_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 update<'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;
}Required Methods§
Sourcefn 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.
Sourcefn 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.
Sourcefn 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).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".