actrpc-core 0.1.0

Core types and traits for ActRPC.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::action::{ActionDescriptor, ActionKind};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
#[serde(deny_unknown_fields)]
pub struct InterceptorInitialization {
    #[serde(default)]
    pub supports_outbound: bool,
    #[serde(default)]
    pub supports_inbound: bool,
    #[serde(default)]
    pub actions: HashMap<ActionKind, ActionDescriptor>,
}