integrationos-domain 8.0.0

Shared library for IntegrationOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::Event;
use crate::RootContext;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EventWithContext {
    pub event: Event,
    pub context: RootContext,
}

impl EventWithContext {
    pub fn new(event: Event, context: RootContext) -> Self {
        Self { event, context }
    }
}