pub struct IngestEventRequest {
pub event_type: String,
pub entity_id: String,
pub tenant_id: Option<String>,
pub payload: Value,
pub metadata: Option<Value>,
pub expected_version: Option<u64>,
}Expand description
DTO for ingesting a new event
Fields§
§event_type: String§entity_id: String§tenant_id: Option<String>§payload: Value§metadata: Option<Value>§expected_version: Option<u64>Optional optimistic concurrency control: if set, the write is rejected with 409 Conflict unless the entity’s current version matches this value.
Trait Implementations§
Source§impl Debug for IngestEventRequest
impl Debug for IngestEventRequest
Source§impl<'de> Deserialize<'de> for IngestEventRequest
impl<'de> Deserialize<'de> for IngestEventRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IngestEventRequest
impl RefUnwindSafe for IngestEventRequest
impl Send for IngestEventRequest
impl Sync for IngestEventRequest
impl Unpin for IngestEventRequest
impl UnsafeUnpin for IngestEventRequest
impl UnwindSafe for IngestEventRequest
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