pub struct ForgetBuilder { /* private fields */ }Expand description
Builder for a FORGET request. Defaults to a soft forget (tombstone with a
grace period); .hard() zeroes immediately.
Implementations§
Source§impl ForgetBuilder
impl ForgetBuilder
Sourcepub fn new(memory_id: WireMemoryId) -> Self
pub fn new(memory_id: WireMemoryId) -> Self
Start a soft FORGET of memory_id.
Sourcepub fn act_as(
self,
namespace: impl Into<String>,
space_id: impl Into<String>,
) -> Self
pub fn act_as( self, namespace: impl Into<String>, space_id: impl Into<String>, ) -> Self
Run this forget on behalf of another (namespace, space_id) identity.
Requires the connection principal to hold the can_act_as grant; set
per request, never on the client, so a pooled client can serve many
effective identities.
Sourcepub fn mode(self, mode: ForgetMode) -> Self
pub fn mode(self, mode: ForgetMode) -> Self
Set the forget mode explicitly.
Sourcepub fn build(self) -> ForgetRequest
pub fn build(self) -> ForgetRequest
Finish into a wire ForgetRequest, minting a fresh request_id.
Trait Implementations§
Source§impl Clone for ForgetBuilder
impl Clone for ForgetBuilder
Auto Trait Implementations§
impl Freeze for ForgetBuilder
impl RefUnwindSafe for ForgetBuilder
impl Send for ForgetBuilder
impl Sync for ForgetBuilder
impl Unpin for ForgetBuilder
impl UnsafeUnpin for ForgetBuilder
impl UnwindSafe for ForgetBuilder
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