[−][src]Trait fm_plugin::Plugin
Implement this trait for your plugin struct. The different functions are used to give FileMaker information about the plugin. You also need to register all your functions/script steps in the trait implementation.
Example
struct MyPlugin; impl Plugin for MyPlugin { fn id() -> &'static [u8; 4] { &b"MyPl" } fn name() -> &'static str { "MY PLUGIN" } fn description() -> &'static str { "Does all sorts of great things." } fn url() -> &'static str { "http://myplugin.com" } fn register_functions() -> Vec<Registration> { vec![Registration::Function { id: 100, name: "MyPlugin_MyFunction", definition: "MyPlugin_MyFunction( arg1 ; arg2 )", description: "Does some really great stuff.", min_args: 2, max_args: 2, display_in_dialogs: true, compatibility_flags: Compatibility::Future as u32, min_version: ExternVersion::V160, function_ptr: Some(MyFunction::extern_func), } ] } }
Required methods
pub fn id() -> &'static [u8; 4]
[src]
Unique 4 letter identifier for the plug-in.
pub fn name() -> &'static str
[src]
Plug-in's name.
pub fn description() -> &'static str
[src]
Description of the plug-in.
pub fn url() -> &'static str
[src]
Url to send users to from the help in FileMaker. The function's name that the user will be appended to the url when clicked.
pub fn register_functions() -> Vec<Registration>
[src]
Register all custom functions/script steps
Provided methods
pub fn enable_configure_button() -> bool
[src]
Defaults to false
pub fn enable_init_and_shutdown() -> bool
[src]
Defaults to true
pub fn enable_idle() -> bool
[src]
Defaults to false
pub fn enable_file_and_session_shutdown() -> bool
[src]
Defaults to false