pub struct UpstreamEvent {
pub event_type: String,
pub schema: Option<String>,
pub fields: Vec<Field>,
pub unparsed: Option<String>,
}Expand description
One event type and the payload the upstream schema declares for it.
Fields§
§event_type: String§schema: Option<String>Name of the Zod const the fields came from, when one was found.
fields: Vec<Field>Payload fields, excluding the type discriminator and the inherited
BaseEventSchema fields. Empty and meaningless when unparsed is set.
unparsed: Option<String>Why the fields could not be trusted, when they could not be.
Trait Implementations§
Source§impl Clone for UpstreamEvent
impl Clone for UpstreamEvent
Source§fn clone(&self) -> UpstreamEvent
fn clone(&self) -> UpstreamEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpstreamEvent
impl RefUnwindSafe for UpstreamEvent
impl Send for UpstreamEvent
impl Sync for UpstreamEvent
impl Unpin for UpstreamEvent
impl UnsafeUnpin for UpstreamEvent
impl UnwindSafe for UpstreamEvent
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