yog_event/planes/system/
bus.rs1use yog_data::Schema;
5
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Schema)]
8pub enum AddressKind {
9 Event,
11 Service,
13}
14
15#[derive(Debug, Clone, PartialEq, Schema)]
17pub struct Descriptor {
18 pub address: String,
19 pub kind: AddressKind,
20 pub doc: String,
21 pub shape: yog_data::ShapeDoc,
23 pub reply: Option<yog_data::ShapeDoc>,
25 #[data(default)]
27 pub interfaces: Vec<String>,
28}
29
30#[derive(Debug, Clone, Schema)]
32pub struct List {
33 pub prefix: String,
34}
35
36#[derive(Debug, Clone, Schema)]
38pub struct Describe {
39 pub address: String,
40}
41
42#[derive(Debug, Clone, Schema)]
44pub struct Find {
45 pub interface: String,
46}