pub struct EntityEvent {
pub entity_type: String,
pub entity_id: String,
pub operation: String,
pub data: Value,
pub old_data: Option<Value>,
}Expand description
A simple event that EventBridge receives from ChangeLogListener
Fields§
§entity_type: StringEntity type (e.g., “Order”, “User”)
entity_id: StringEntity ID (primary key)
operation: StringOperation type (“INSERT”, “UPDATE”, “DELETE”)
data: ValueEntity data as JSON
old_data: Option<Value>Optional old data (for UPDATE operations)
Implementations§
Trait Implementations§
Source§impl Clone for EntityEvent
impl Clone for EntityEvent
Source§fn clone(&self) -> EntityEvent
fn clone(&self) -> EntityEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EntityEvent
impl RefUnwindSafe for EntityEvent
impl Send for EntityEvent
impl Sync for EntityEvent
impl Unpin for EntityEvent
impl UnsafeUnpin for EntityEvent
impl UnwindSafe for EntityEvent
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