#[non_exhaustive]pub enum ForgetTarget {
Id(Ulid),
Scope(ScopeSpec),
Before(Hlc),
}Expand description
Single-entry-point target for Lunaris::forget per D-18. Three variants
closing OPS-01 / OPS-02 / OPS-03.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Id(Ulid)
OPS-01: single-target purge across KV + vector + graph indices.
Scope(ScopeSpec)
OPS-02: scope purge — soft-delete by default; .hard() requires
confirmation token (D-21 safety rail).
Before(Hlc)
OPS-03: temporal-bound purge using AS_OF semantics (D-19).
Implementations§
Source§impl ForgetTarget
impl ForgetTarget
Sourcepub fn hard(self) -> ForgetRequest
pub fn hard(self) -> ForgetRequest
Mark the request as a hard (irreversible) delete. The user MUST also
call .with_token(token) from a prior confirm_hard_forget(dry_run)
or the call returns
LunarisError::Validate(ValidateError::ConfirmationRequired(_)) per
the D-21 safety rail (B-3 typed variant).
Sourcepub fn dry_run(self) -> ForgetRequest
pub fn dry_run(self) -> ForgetRequest
Build a preview request that does NOT call atomic_write. Returns a
ForgetReceipt { preview: true, rows_written: 0, ... } so the caller
can inspect what would have been touched + (for hard delete) feed the
receipt to confirm_hard_forget to receive a token.
Sourcepub fn into_request(self) -> ForgetRequest
pub fn into_request(self) -> ForgetRequest
Wrap as a soft-delete request (default options).
Trait Implementations§
Source§impl Clone for ForgetTarget
impl Clone for ForgetTarget
Source§fn clone(&self) -> ForgetTarget
fn clone(&self) -> ForgetTarget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ForgetTarget
impl Debug for ForgetTarget
Source§impl<'de> Deserialize<'de> for ForgetTarget
impl<'de> Deserialize<'de> for ForgetTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ForgetTarget
Source§impl From<&ForgetTarget> for ForgetTargetData
impl From<&ForgetTarget> for ForgetTargetData
Source§fn from(t: &ForgetTarget) -> Self
fn from(t: &ForgetTarget) -> Self
Source§impl From<ForgetTarget> for ForgetRequest
impl From<ForgetTarget> for ForgetRequest
Source§fn from(target: ForgetTarget) -> Self
fn from(target: ForgetTarget) -> Self
Source§impl PartialEq for ForgetTarget
impl PartialEq for ForgetTarget
Source§impl Serialize for ForgetTarget
impl Serialize for ForgetTarget
impl StructuralPartialEq for ForgetTarget
Auto Trait Implementations§
impl Freeze for ForgetTarget
impl RefUnwindSafe for ForgetTarget
impl Send for ForgetTarget
impl Sync for ForgetTarget
impl Unpin for ForgetTarget
impl UnsafeUnpin for ForgetTarget
impl UnwindSafe for ForgetTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more