pub struct SqliteHttpIdempotencyRepository { /* private fields */ }Available on crate feature
sqlite only.Expand description
SQLite repository over the http_idempotency_keys table.
Implementations§
Source§impl SqliteHttpIdempotencyRepository
impl SqliteHttpIdempotencyRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl HttpIdempotencyRepository for SqliteHttpIdempotencyRepository
impl HttpIdempotencyRepository for SqliteHttpIdempotencyRepository
Source§fn get(
&self,
tenant: &str,
key: &str,
expired_before: DateTime<Utc>,
) -> Result<Option<HttpIdempotencyRecord>>
fn get( &self, tenant: &str, key: &str, expired_before: DateTime<Utc>, ) -> Result<Option<HttpIdempotencyRecord>>
Fetch the entry for
(tenant, key). Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SqliteHttpIdempotencyRepository
impl !UnwindSafe for SqliteHttpIdempotencyRepository
impl Freeze for SqliteHttpIdempotencyRepository
impl Send for SqliteHttpIdempotencyRepository
impl Sync for SqliteHttpIdempotencyRepository
impl Unpin for SqliteHttpIdempotencyRepository
impl UnsafeUnpin for SqliteHttpIdempotencyRepository
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