use yog_data::{Schema, Value};
#[derive(Debug, Clone, Copy, PartialEq, Eq, Schema)]
pub enum AddressKind {
Event,
Service,
}
#[derive(Debug, Clone, PartialEq, Schema)]
pub struct Descriptor {
pub address: String,
pub kind: AddressKind,
pub doc: String,
pub shape: Value,
pub reply: Option<Value>,
#[data(default)]
pub interfaces: Vec<String>,
}
#[derive(Debug, Clone, Schema)]
pub struct List {
pub prefix: String,
}
#[derive(Debug, Clone, Schema)]
pub struct Describe {
pub address: String,
}
#[derive(Debug, Clone, Schema)]
pub struct Find {
pub interface: String,
}