pub struct InMemoryPiiRowStore { /* private fields */ }Expand description
In-memory PiiRowStore for tests.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryPiiRowStore
impl Debug for InMemoryPiiRowStore
Source§impl Default for InMemoryPiiRowStore
impl Default for InMemoryPiiRowStore
Source§fn default() -> InMemoryPiiRowStore
fn default() -> InMemoryPiiRowStore
Returns the “default value” for a type. Read more
Source§impl PiiRowStore for InMemoryPiiRowStore
impl PiiRowStore for InMemoryPiiRowStore
Source§fn rows_for(&self, user: UserId) -> UserPiiRows
fn rows_for(&self, user: UserId) -> UserPiiRows
Fetch the set of encrypted-PII rows attached to
user. Returns
a fresh UserPiiRows (possibly empty) when the user has none.Source§fn tombstone(&mut self, user: UserId) -> Result<(), ProjectionError>
fn tombstone(&mut self, user: UserId) -> Result<(), ProjectionError>
Mark every row as tombstoned. Idempotent — a repeat call after
cascade completion must be a no-op.
Source§fn is_tombstoned(&self, user: UserId) -> bool
fn is_tombstoned(&self, user: UserId) -> bool
Whether
user’s rows have already been tombstoned.Auto Trait Implementations§
impl Freeze for InMemoryPiiRowStore
impl RefUnwindSafe for InMemoryPiiRowStore
impl Send for InMemoryPiiRowStore
impl Sync for InMemoryPiiRowStore
impl Unpin for InMemoryPiiRowStore
impl UnsafeUnpin for InMemoryPiiRowStore
impl UnwindSafe for InMemoryPiiRowStore
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