Crate vanguard_plugin_sdk

Crate vanguard_plugin_sdk 

Source
Expand description

Vanguard Plugin SDK

This crate provides tools and utilities for developing Vanguard plugins. It includes macros and helper functions to make plugin development easier and safer.

Re-exports§

pub use command::Command;
pub use command::CommandContext;
pub use command::CommandHandler;
pub use command::CommandResult;
pub use command::VanguardCommand;

Modules§

command

Macros§

command_handler
Helper macro for implementing CommandHandler trait
plugin
Helper macro for implementing the VanguardPlugin trait
plugin_config
Helper macro for implementing plugin configuration

Structs§

MetadataBuilder
Helper struct for building plugin metadata
PluginMetadata
Metadata for a Vanguard plugin
PluginOptions
Options for plugin generation

Enums§

PluginError
Errors that can occur during plugin development
TemplateError
Plugin template generation errors
ValidationResult
Result of plugin validation

Traits§

PluginMetadataBuilder
Helper trait for building plugin metadata
VanguardPlugin
Trait that must be implemented by all Vanguard plugins

Functions§

generate_plugin
Generate a new plugin from a template
metadata
Creates a new plugin metadata builder

Type Aliases§

PluginResult
Result type for plugin operations
TemplateResult
Result type for template operations