#[non_exhaustive]pub struct EventRecord {
pub aws_region: String,
pub change: StreamRecord,
pub event_id: String,
pub event_name: String,
pub event_source: Option<String>,
pub event_version: Option<String>,
pub event_source_arn: Option<String>,
pub user_identity: Option<UserIdentity>,
pub record_format: Option<String>,
pub table_name: Option<String>,
pub other: Map<String, Value>,
}dynamodb only.Expand description
EventRecord stores information about each record of a DynamoDb stream event
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.aws_region: StringThe region in which the GetRecords request was received.
change: StreamRecordThe main body of the stream record, containing all of the DynamoDB-specific fields.
event_id: StringA globally unique identifier for the event that was recorded in this stream record.
event_name: StringThe type of data modification that was performed on the DynamoDB table:
-
INSERT - a new item was added to the table.
-
MODIFY - one or more of an existing item’s attributes were modified.
-
REMOVE - the item was deleted from the table
event_source: Option<String>The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
event_version: Option<String>The version number of the stream record format. This number is updated whenever the structure of Record is modified.
Client applications must not assume that eventVersion will remain at a particular value, as this number is subject to change at any time. In general, eventVersion will only increase as the low-level DynamoDB Streams API evolves.
event_source_arn: Option<String>The event source ARN of DynamoDB
user_identity: Option<UserIdentity>Items that are deleted by the Time to Live process after expiration have the following fields:
- Records[].userIdentity.type
“Service”
- Records[].userIdentity.principalId
“dynamodb.amazonaws.com”
record_format: Option<String>Describes the record format and relevant mapping information that should be applied to schematize the records on the stream. For DynamoDB Streams, this is application/json.
table_name: Option<String>The DynamoDB table that this event was recorded for.
other: Map<String, Value>catch-all-fields only.Catchall to catch any additional fields that were present but not explicitly defined by this struct.
Enabled with Cargo feature catch-all-fields.
If catch-all-fields is disabled, any additional fields that are present will be ignored.
Trait Implementations§
Source§impl Clone for EventRecord
impl Clone for EventRecord
Source§fn clone(&self) -> EventRecord
fn clone(&self) -> EventRecord
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventRecord
impl Debug for EventRecord
Source§impl Default for EventRecord
impl Default for EventRecord
Source§fn default() -> EventRecord
fn default() -> EventRecord
Source§impl<'de> Deserialize<'de> for EventRecord
impl<'de> Deserialize<'de> for EventRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for EventRecord
impl PartialEq for EventRecord
Source§impl Serialize for EventRecord
impl Serialize for EventRecord
impl StructuralPartialEq for EventRecord
Auto Trait Implementations§
impl Freeze for EventRecord
impl RefUnwindSafe for EventRecord
impl Send for EventRecord
impl Sync for EventRecord
impl Unpin for EventRecord
impl UnwindSafe for EventRecord
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)