pub struct StreamDef {
pub name: String,
pub name_span: Span,
pub config: StreamConfig,
pub state: Vec<VariableDecl>,
pub on_connect: Option<Vec<Statement>>,
pub on_disconnect: Option<Vec<Statement>>,
pub on_event: Option<StreamOnEvent>,
pub on_window: Option<StreamOnWindow>,
pub on_error: Option<StreamOnError>,
}Expand description
Stream definition for real-time data processing
Fields§
§name: String§name_span: Span§config: StreamConfig§state: Vec<VariableDecl>§on_connect: Option<Vec<Statement>>§on_disconnect: Option<Vec<Statement>>§on_event: Option<StreamOnEvent>§on_window: Option<StreamOnWindow>§on_error: Option<StreamOnError>Trait Implementations§
Source§impl<'de> Deserialize<'de> for StreamDef
impl<'de> Deserialize<'de> for StreamDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StreamDef
impl RefUnwindSafe for StreamDef
impl Send for StreamDef
impl Sync for StreamDef
impl Unpin for StreamDef
impl UnsafeUnpin for StreamDef
impl UnwindSafe for StreamDef
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