pub struct InMemoryApprovalStore { /* private fields */ }Expand description
In-memory approval store for tests and process-local runtimes.
Implementations§
Trait Implementations§
Source§impl ApprovalStore for InMemoryApprovalStore
impl ApprovalStore for InMemoryApprovalStore
fn load_all(&self) -> Result<Vec<ApprovalRecord>, ApprovalStoreError>
fn put(&self, record: &ApprovalRecord) -> Result<(), ApprovalStoreError>
fn is_persistent(&self) -> bool
Source§impl Debug for InMemoryApprovalStore
impl Debug for InMemoryApprovalStore
Source§impl Default for InMemoryApprovalStore
impl Default for InMemoryApprovalStore
Source§fn default() -> InMemoryApprovalStore
fn default() -> InMemoryApprovalStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryApprovalStore
impl !RefUnwindSafe for InMemoryApprovalStore
impl Send for InMemoryApprovalStore
impl Sync for InMemoryApprovalStore
impl Unpin for InMemoryApprovalStore
impl UnsafeUnpin for InMemoryApprovalStore
impl UnwindSafe for InMemoryApprovalStore
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