pub struct SqliteRevocationStore { /* private fields */ }Implementations§
Source§impl SqliteRevocationStore
impl SqliteRevocationStore
pub fn open(path: impl AsRef<Path>) -> Result<Self, RevocationStoreError>
pub fn list_revocations( &self, limit: usize, capability_id: Option<&str>, ) -> Result<Vec<RevocationRecord>, RevocationStoreError>
pub fn list_revocations_after( &self, limit: usize, after_revoked_at: Option<i64>, after_capability_id: Option<&str>, ) -> Result<Vec<RevocationRecord>, RevocationStoreError>
pub fn upsert_revocation( &mut self, record: &RevocationRecord, ) -> Result<(), RevocationStoreError>
Trait Implementations§
Source§impl RevocationStore for SqliteRevocationStore
impl RevocationStore for SqliteRevocationStore
Source§fn is_revoked(&self, capability_id: &str) -> Result<bool, RevocationStoreError>
fn is_revoked(&self, capability_id: &str) -> Result<bool, RevocationStoreError>
Check if a capability ID has been revoked.
Auto Trait Implementations§
impl !Freeze for SqliteRevocationStore
impl !RefUnwindSafe for SqliteRevocationStore
impl !Sync for SqliteRevocationStore
impl !UnwindSafe for SqliteRevocationStore
impl Send for SqliteRevocationStore
impl Unpin for SqliteRevocationStore
impl UnsafeUnpin for SqliteRevocationStore
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