pub struct SchemaEntry {
pub name: String,
pub has_timestamp: bool,
pub fields: Vec<FieldDef>,
}Expand description
Describes the layout of an event type. Does not carry a wire type ID — the ID is assigned by the encoder and tracked externally by the registry.
Fields§
§name: StringEvent type name (e.g. "PollStart").
has_timestamp: boolWhether events of this type carry a packed u24 nanosecond timestamp in the event header.
fields: Vec<FieldDef>Ordered list of fields (excluding the timestamp, which is in the header).
Trait Implementations§
Source§impl Clone for SchemaEntry
impl Clone for SchemaEntry
Source§fn clone(&self) -> SchemaEntry
fn clone(&self) -> SchemaEntry
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 moreSource§impl Debug for SchemaEntry
impl Debug for SchemaEntry
Source§impl PartialEq for SchemaEntry
impl PartialEq for SchemaEntry
impl Eq for SchemaEntry
impl StructuralPartialEq for SchemaEntry
Auto Trait Implementations§
impl Freeze for SchemaEntry
impl RefUnwindSafe for SchemaEntry
impl Send for SchemaEntry
impl Sync for SchemaEntry
impl Unpin for SchemaEntry
impl UnsafeUnpin for SchemaEntry
impl UnwindSafe for SchemaEntry
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