pub struct ArrowEventSchema {
pub full_name: String,
pub payload_column: String,
pub fields: Vec<ArrowField>,
pub schema_hash: u64,
}Expand description
One per-event payload struct. Combined into the unified
obs_events table by ArrowSchemaModel.
Fields§
§full_name: StringStable identity, matches EventSchema::FULL_NAME.
payload_column: Stringpayload_<full_name_snake> — the column name for this event’s
per-event Nested struct. Spec 22 § 1.1.
fields: Vec<ArrowField>One Arrow field per declared schema field.
schema_hash: u64First 8 bytes of BLAKE3 over the canonical descriptor.
Implementations§
Source§impl ArrowEventSchema
impl ArrowEventSchema
Sourcepub fn from_erased(schema: &dyn EventSchemaErased) -> Self
pub fn from_erased(schema: &dyn EventSchemaErased) -> Self
Build an ArrowEventSchema from an EventSchemaErased view.
The leaf-type inference uses FieldRole plus a small heuristic
on the field name suffix (*_ns, *_ms, *_count, *_id).
Codegen will eventually own the type table directly; this
keeps Phase-4 sinks operational against the Phase-1/2 codegen.
Trait Implementations§
Source§impl Clone for ArrowEventSchema
impl Clone for ArrowEventSchema
Source§fn clone(&self) -> ArrowEventSchema
fn clone(&self) -> ArrowEventSchema
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 ArrowEventSchema
impl RefUnwindSafe for ArrowEventSchema
impl Send for ArrowEventSchema
impl Sync for ArrowEventSchema
impl Unpin for ArrowEventSchema
impl UnsafeUnpin for ArrowEventSchema
impl UnwindSafe for ArrowEventSchema
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