pub struct Manifest {
pub hello: Hello,
pub streams: BTreeSet<String>,
pub actions: BTreeSet<String>,
}Expand description
Mandatory announcement of a plugin’s protocol version, stream and action types.
Fields§
§hello: Hello§streams: BTreeSet<String>Stream types that should be made available to reaction users
{
streams: {
my_stream: {
type: "..."
# ↑ all those exposed types
}
}
}actions: BTreeSet<String>Action types that should be made available to reaction users
{
streams: {
mystream: {
filters: {
myfilter: {
actions: {
myaction: {
type: "myactiontype",
# ↑ all those exposed types
},
},
},
},
},
},
}Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more