pub struct NormalizeReport {
pub aliases_processed: usize,
pub subject_rows_updated: usize,
pub object_rows_updated: usize,
pub dry_run: bool,
}Expand description
What WriteCommand::NormalizeSubjects returns to the caller.
Opt-in backfill tool: rewrites historical triples.subject_id and
triples.object_id values according to a caller-supplied alias map.
The companion to v0.5.0’s read-path alias resolution
(IdentityConfig.user_aliases) — that bridges queries transparently
against existing rows, while this rewrites the underlying data so
downstream consumers (third-party tools, exports) see the canonical
identity. See docs/dev-log/0071-v0.5.x-roadmap.md Priority 10.
Fields§
§aliases_processed: usizeNumber of (from, to) alias pairs processed (== scope.aliases.len()).
subject_rows_updated: usizeRows whose subject_id was rewritten (summed across all pairs).
In dry_run mode this is the count that would be rewritten;
the transaction is rolled back before the change is persisted.
object_rows_updated: usizeRows whose object_id was rewritten (summed across all pairs).
Same dry-run semantics as subject_rows_updated.
dry_run: boolMirrors the scope flag so callers can format output without retaining the original scope.
Trait Implementations§
Source§impl Clone for NormalizeReport
impl Clone for NormalizeReport
Source§fn clone(&self) -> NormalizeReport
fn clone(&self) -> NormalizeReport
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 NormalizeReport
impl Debug for NormalizeReport
Source§impl Default for NormalizeReport
impl Default for NormalizeReport
Source§fn default() -> NormalizeReport
fn default() -> NormalizeReport
Auto Trait Implementations§
impl Freeze for NormalizeReport
impl RefUnwindSafe for NormalizeReport
impl Send for NormalizeReport
impl Sync for NormalizeReport
impl Unpin for NormalizeReport
impl UnsafeUnpin for NormalizeReport
impl UnwindSafe for NormalizeReport
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,
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