aws_lambda_events/event/documentdb/events/
invalidate_event.rs

1use serde::{Deserialize, Serialize};
2#[cfg(feature = "catch-all-fields")]
3use serde_json::Value;
4
5use super::commom_types::{DocumentId, Timestamp};
6
7#[non_exhaustive]
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9#[serde(rename_all = "camelCase")]
10pub struct ChangeInvalidateEvent {
11    #[serde(rename = "_id")]
12    id: DocumentId,
13    #[serde(default)]
14    cluster_time: Option<Timestamp>,
15    // operation_type: String,
16    /// Catchall to catch any additional fields that were present but not explicitly defined by this struct.
17    /// Enabled with Cargo feature `catch-all-fields`.
18    /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored.
19    #[cfg(feature = "catch-all-fields")]
20    #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))]
21    #[serde(flatten)]
22    pub other: serde_json::Map<String, Value>,
23}