Struct perseus::plugins::FunctionalPluginActions
source · [−]pub struct FunctionalPluginActions<G: Html> {
pub tinker: FunctionalPluginAction<(), ()>,
pub settings_actions: FunctionalPluginSettingsActions<G>,
pub build_actions: FunctionalPluginBuildActions,
pub export_actions: FunctionalPluginExportActions,
pub export_error_page_actions: FunctionalPluginExportErrorPageActions,
pub server_actions: FunctionalPluginServerActions,
pub client_actions: FunctionalPluginClientActions,
}Expand description
Actions designed to be compatible with other plugins such that two plugins can execute the same action.
Fields
tinker: FunctionalPluginAction<(), ()>The all-powerful action that can modify the Perseus engine itself. Because modifying the code you’re running doesn’t work with
compiled languages like Rust, this has its own command in the CLI, perseus tinker. This is best used for modifying
.perseus/Cargo.toml or other files. Ensure that you add signal comments so you don’t apply the same modifications twice!
This will be executed in the context of .perseus/. As usual, do NOT change the directory here, because that will affect every
other plugin as well, just use ../s if you need to work outside .perseus/.
If your plugin uses this action in a way that may confuse other plugins, you should note this in your documentation.
settings_actions: FunctionalPluginSettingsActions<G>Actions pertaining to the modification of settings created with PerseusApp.
build_actions: FunctionalPluginBuildActionsActions pertaining to the build process.
export_actions: FunctionalPluginExportActionsActions pertaining to the export process.
export_error_page_actions: FunctionalPluginExportErrorPageActionsActions pertaining to the process of exporting an error page.
server_actions: FunctionalPluginServerActionsActions pertaining to the server.
client_actions: FunctionalPluginClientActionsActions pertaining to the client-side code.
Trait Implementations
sourceimpl<G: Debug + Html> Debug for FunctionalPluginActions<G>
impl<G: Debug + Html> Debug for FunctionalPluginActions<G>
Auto Trait Implementations
impl<G> !RefUnwindSafe for FunctionalPluginActions<G>
impl<G> Send for FunctionalPluginActions<G>
impl<G> !Sync for FunctionalPluginActions<G>
impl<G> Unpin for FunctionalPluginActions<G>
impl<G> !UnwindSafe for FunctionalPluginActions<G>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more