pub struct PluginRegistration {
pub name: String,
pub tools: Vec<PluginToolDef>,
pub hooks: Vec<String>,
pub commands: Vec<PluginCommand>,
}Fields§
§name: StringPlugin name.
tools: Vec<PluginToolDef>Tools provided by this plugin.
hooks: Vec<String>Hooks this plugin wants to receive.
commands: Vec<PluginCommand>Slash commands provided by this plugin.
Trait Implementations§
Source§impl Clone for PluginRegistration
impl Clone for PluginRegistration
Source§fn clone(&self) -> PluginRegistration
fn clone(&self) -> PluginRegistration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginRegistration
impl Debug for PluginRegistration
Source§impl<'de> Deserialize<'de> for PluginRegistration
impl<'de> Deserialize<'de> for PluginRegistration
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PluginRegistration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PluginRegistration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PluginRegistration
impl Serialize for PluginRegistration
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PluginRegistration
impl RefUnwindSafe for PluginRegistration
impl Send for PluginRegistration
impl Sync for PluginRegistration
impl Unpin for PluginRegistration
impl UnsafeUnpin for PluginRegistration
impl UnwindSafe for PluginRegistration
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