pub struct EventTypeBuilder<'a> { /* private fields */ }Expand description
Builder for configuring type information on a SessionBuilder.
Obtained by calling SessionBuilder::declare_type. Use define_record
to define a record-shaped type. Call done to return to the SessionBuilder.
Implementations§
Source§impl<'a> EventTypeBuilder<'a>
impl<'a> EventTypeBuilder<'a>
Sourcepub fn define_record(self) -> EventTypeRecordBuilder<'a>
pub fn define_record(self) -> EventTypeRecordBuilder<'a>
Starts building a record-shaped event type with named fields.
Sourcepub fn data_source(self, data_source: &str, tpe: Type) -> Self
pub fn data_source(self, data_source: &str, tpe: Type) -> Self
Registers a type for a specific named data source.
Queries targeting data_source will use tpe for type checking instead of the default event type.
Data source names are case-insensitive.
Sourcepub fn done(self)
pub fn done(self)
Finalizes type configuration and returns the SessionBuilder.
Auto Trait Implementations§
impl<'a> !UnwindSafe for EventTypeBuilder<'a>
impl<'a> Freeze for EventTypeBuilder<'a>
impl<'a> RefUnwindSafe for EventTypeBuilder<'a>
impl<'a> Send for EventTypeBuilder<'a>
impl<'a> Sync for EventTypeBuilder<'a>
impl<'a> Unpin for EventTypeBuilder<'a>
impl<'a> UnsafeUnpin for EventTypeBuilder<'a>
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