pub struct EventSchema {
pub event_type: String,
pub version: u32,
pub required_fields: Vec<String>,
pub description: String,
}Expand description
Schema definition for an event type at a specific version
Fields§
§event_type: StringEvent type identifier (e.g., “forex.rate_change”)
version: u32Schema version
required_fields: Vec<String>Required top-level fields in the payload
description: StringOptional description of this schema version
Trait Implementations§
Source§impl Clone for EventSchema
impl Clone for EventSchema
Source§fn clone(&self) -> EventSchema
fn clone(&self) -> EventSchema
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 EventSchema
impl RefUnwindSafe for EventSchema
impl Send for EventSchema
impl Sync for EventSchema
impl Unpin for EventSchema
impl UnsafeUnpin for EventSchema
impl UnwindSafe for EventSchema
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