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>,
}
Expand description

EventRecord stores information about each record of a DynamoDb stream event

Fields§

§aws_region: String

The region in which the GetRecords request was received.

§change: StreamRecord

The main body of the stream record, containing all of the DynamoDB-specific fields.

§event_id: String

A globally unique identifier for the event that was recorded in this stream record.

§event_name: String

The 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.

Trait Implementations§

source§

impl Clone for EventRecord

source§

fn clone(&self) -> EventRecord

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EventRecord

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for EventRecord

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for EventRecord

source§

fn eq(&self, other: &EventRecord) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for EventRecord

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for EventRecord

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,