pub struct ProcessedEvent {
pub event: StreamEvent,
pub was_modified: bool,
pub encrypted_payload: Option<String>,
}Expand description
Result of processing an event
Fields§
§event: StreamEventThe processed event (may be transformed)
was_modified: boolWhether the event was modified
encrypted_payload: Option<String>Optional: encrypted payload for storage (if applicable)
Implementations§
Source§impl ProcessedEvent
impl ProcessedEvent
Sourcepub fn unchanged(event: StreamEvent) -> Self
pub fn unchanged(event: StreamEvent) -> Self
Create a processed event that was not modified
Sourcepub fn modified(event: StreamEvent) -> Self
pub fn modified(event: StreamEvent) -> Self
Create a processed event that was modified
Sourcepub fn with_encrypted(self, encrypted: String) -> Self
pub fn with_encrypted(self, encrypted: String) -> Self
Add an encrypted payload (for storage destination)
Trait Implementations§
Source§impl Clone for ProcessedEvent
impl Clone for ProcessedEvent
Source§fn clone(&self) -> ProcessedEvent
fn clone(&self) -> ProcessedEvent
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 ProcessedEvent
impl RefUnwindSafe for ProcessedEvent
impl Send for ProcessedEvent
impl Sync for ProcessedEvent
impl Unpin for ProcessedEvent
impl UnsafeUnpin for ProcessedEvent
impl UnwindSafe for ProcessedEvent
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