pub struct ReembedScope {
pub from: Option<(String, String)>,
pub dry_run: bool,
pub gc: bool,
}Expand description
Filter + flags for WriteCommand::Reembed.
Fields§
§from: Option<(String, String)>If Some((name, version)), only reembed memories whose existing
embedding row was produced by this embedder identity. If None,
every memory whose embedding’s embedder_id differs from the
writer’s current embedder_id is a candidate.
dry_run: boolWalk + count only; write nothing.
gc: boolAfter re-embedding each touched memory, DELETE the prior
embeddings rows for that memory whose embedder_id differs
from the current. Without this flag, stale rows are retained
for forensics or rollback.
Trait Implementations§
Source§impl Clone for ReembedScope
impl Clone for ReembedScope
Source§fn clone(&self) -> ReembedScope
fn clone(&self) -> ReembedScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReembedScope
impl Debug for ReembedScope
Source§impl Default for ReembedScope
impl Default for ReembedScope
Source§fn default() -> ReembedScope
fn default() -> ReembedScope
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReembedScope
impl RefUnwindSafe for ReembedScope
impl Send for ReembedScope
impl Sync for ReembedScope
impl Unpin for ReembedScope
impl UnsafeUnpin for ReembedScope
impl UnwindSafe for ReembedScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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