#[derive(Debug, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case", tag = "type")]
pub enum CellInteraction<'a> {
Event(#[serde(borrow)] Event<'a>),
Command(#[serde(borrow)] Command<'a>),
}
pub type EventName = alloc::string::String;
pub type CommandName = alloc::string::String;
pub type Bytes = alloc::vec::Vec<u8>;
#[derive(Debug, serde::Serialize, serde::Deserialize)]
#[allow(missing_docs)]
pub struct Event<'a> {
pub name: &'a str,
pub payload: Option<&'a [u8]>,
}
#[derive(Debug, serde::Serialize, serde::Deserialize)]
#[allow(missing_docs)]
pub struct Command<'a> {
pub sri: &'a str,
pub name: &'a str,
pub payload: Option<&'a [u8]>,
}
#[derive(Debug)]
#[allow(missing_docs)]
pub struct Error {
pub status: u16,
pub message: &'static str,
}