pub struct SnapshotGenericEvent<Id> {
pub entity_id: Id,
pub sequence: i32,
pub event: Option<Value>,
pub context: Option<ContextData>,
pub recorded_at: Option<DateTime<Utc>>,
pub forgettable_payload: Option<Value>,
pub snapshot: Option<Value>,
pub snapshot_sequence: Option<i32>,
pub snapshot_recorded_at: Option<DateTime<Utc>>,
pub snapshot_first_recorded_at: Option<DateTime<Utc>>,
pub snapshot_forgettable_payload: Option<Value>,
}Expand description
Row type of every loader on a snapshot repo (aliased as Repo__DbEvent
there). GenericEvent<Id> itself is untouched — every existing repo’s
query_as! and .sqlx entry stay as is; this confines the wider row
shape to snapshot repos only.
Fields§
§entity_id: Id§sequence: i32§event: Option<Value>§context: Option<ContextData>§recorded_at: Option<DateTime<Utc>>§forgettable_payload: Option<Value>§snapshot: Option<Value>§snapshot_sequence: Option<i32>§snapshot_recorded_at: Option<DateTime<Utc>>§snapshot_first_recorded_at: Option<DateTime<Utc>>§snapshot_forgettable_payload: Option<Value>Auto Trait Implementations§
impl<Id> Freeze for SnapshotGenericEvent<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for SnapshotGenericEvent<Id>where
Id: RefUnwindSafe,
impl<Id> Send for SnapshotGenericEvent<Id>where
Id: Send,
impl<Id> Sync for SnapshotGenericEvent<Id>where
Id: Sync,
impl<Id> Unpin for SnapshotGenericEvent<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for SnapshotGenericEvent<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for SnapshotGenericEvent<Id>where
Id: UnwindSafe,
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> 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