pub fn new() -> FnResult<()>
The new function is used to initialize a plugin. It is called once when the plugin is loaded