pub struct ChangeLogSample {
pub object_type: String,
pub modification_type: String,
pub duration_ms: Option<i32>,
pub duration_calc_version: Option<i64>,
pub created_at_epoch: f64,
pub object_id: Option<String>,
pub trace_id: Option<String>,
}Expand description
One change-log row, projected to the columns perf analysis needs.
duration_ms is NULL for cooperative external producers (no FraiseQL
request clock); duration_calc_version is the data-quality marker
(extra_metadata->>'duration_calc_version') used to refuse mixing pre-fix
rows with the wall-clock-correct ones — see
fraiseql_db::changelog::DURATION_CALC_VERSION.
Fields§
§object_type: StringEntity type the mutation touched (object_type).
modification_type: StringINSERT / UPDATE / DELETE / CUSTOM.
duration_ms: Option<i32>Wall-clock duration in milliseconds; None for non-executor producers.
duration_calc_version: Option<i64>extra_metadata->>'duration_calc_version'; None when unmarked (legacy).
created_at_epoch: f64EXTRACT(EPOCH FROM created_at) — seconds since the Unix epoch.
object_id: Option<String>The changed entity’s id (object_id::text); None when absent.
trace_id: Option<String>W3C trace id, when populated.
Trait Implementations§
Source§impl Clone for ChangeLogSample
impl Clone for ChangeLogSample
Source§fn clone(&self) -> ChangeLogSample
fn clone(&self) -> ChangeLogSample
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 ChangeLogSample
impl Debug for ChangeLogSample
Source§impl PartialEq for ChangeLogSample
impl PartialEq for ChangeLogSample
Source§fn eq(&self, other: &ChangeLogSample) -> bool
fn eq(&self, other: &ChangeLogSample) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChangeLogSample
Auto Trait Implementations§
impl Freeze for ChangeLogSample
impl RefUnwindSafe for ChangeLogSample
impl Send for ChangeLogSample
impl Sync for ChangeLogSample
impl Unpin for ChangeLogSample
impl UnsafeUnpin for ChangeLogSample
impl UnwindSafe for ChangeLogSample
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